Skip to content

Commit

Permalink
Fix env expend on magicenv
Browse files Browse the repository at this point in the history
Signed-off-by: Vasek - Tom C <[email protected]>
  • Loading branch information
TomChv committed Mar 27, 2024
1 parent d6fa562 commit f4cd4c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demos/bun-server/.envrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export SERVER_PORT=8080
export SESSION_SECRET=MySecretSession

export REDIS_HOST="localhost"
export REDIS_HOST="redis"
export REDIS_PORT=6379

# Environment variables declared in this file are automatically made available to Prisma.
Expand Down
2 changes: 1 addition & 1 deletion demos/bun-server/dagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": [
{
"name": "magicenv",
"source": "github.com/quartz-technology/daggerverse/magicenv@de3995e8025bd0401518396979637286ecf82ab9"
"source": "github.com/quartz-technology/daggerverse/magicenv@d6fa562d77d1daf8d92ea6fa0aadd1c9c5715206"
},
{
"name": "postgres",
Expand Down
2 changes: 1 addition & 1 deletion magicenv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (m *Magicenv) LoadEnv(

// Inject all the variables as secret
for key, value := range envMap {
ctr = ctr.WithEnvVariable(key, value)
ctr = ctr.WithEnvVariable(key, value, ContainerWithEnvVariableOpts{ Expand: true })
}

return ctr, nil
Expand Down

0 comments on commit f4cd4c0

Please sign in to comment.