Skip to content

[Bug]: NGINX envsubst regression in 0.7.0 #1565

@jrseliga

Description

@jrseliga

Current Behavior (bug)

After upgrading to 0.7.0 the variables in the file passed --env-file option of services up are not replaced by the envsubst command

Expected Behavior (fix)

NGINX plugin envsubst respects --env-file

Additional context

Given

.env.devbox

NGINX_WEB_PORT=8004

nginx.template

# ..
server {
         # ..
         listen       $NGINX_WEB_PORT;
         # ..
}
# ..

Unexpected outcome on 0.7.0

DEVBOX_USE_VERSION=0.7.0 devbox services up --env-file .env.devbox

Results in (unexpected):

# ..
server {
         # ..
         listen       8081;
         # ..
}
# ..

Expected outcome on 0.6.0

DEVBOX_USE_VERSION=0.6.0 devbox services up --env-file .env.devbox

Results in (expected):

# ..
server {
         # ..
         listen       8004;
         # ..
}
# ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions