Skip to content

Commit

Permalink
add node module
Browse files Browse the repository at this point in the history
Signed-off-by: Vasek - Tom C <[email protected]>
  • Loading branch information
TomChv committed Aug 8, 2024
1 parent 627fc4d commit 4f9da97
Show file tree
Hide file tree
Showing 17 changed files with 7,908 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/bun-server/.envrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export DB_PASS="XkfhrPGef"
export DB_PORT="5432"
export DB_NAME="daggerdb"

export DATABASE_URL="postgresql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME?schema=public"
export DATABASE_URL="postgresql://dagger:XkfhrPGef@postgres:5432/daggerdb?schema=public"
2 changes: 0 additions & 2 deletions demos/bun-server/dagger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ class TierAppCi {
// Load the environment variables from the local environment (.envrc)
this.ctr = dag.magicenv().loadEnv(this.ctr, { path: ".envrc" });

console.log(await Promise.all((await this.ctr.envVariables()).map(async (v) => await v.name() + "=" + await v.value())))

// Create the services from the environment set locally
const db = this.infra().postgres(
dag.setSecret("dbUser", await this.ctr.envVariable("DB_USER")),
Expand Down
6 changes: 6 additions & 0 deletions demos/dagger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "live",
"sdk": "go",
"source": "dagger",
"engineVersion": "v0.10.2"
}
3 changes: 3 additions & 0 deletions demos/dagger/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/dagger.gen.go linguist-generated
/internal/dagger/** linguist-generated
/internal/querybuilder/** linguist-generated
Loading

0 comments on commit 4f9da97

Please sign in to comment.