-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
The docs say "The variables are available both at run time and during the application build/compilation step." but I've not seen this actually happen at build time.
actual app config:
$ ssh dokku@test config adminapp
=====> adminapp config vars
API_BASE: //adminapp-api.test.zipwhip.com
DOKKU_APP_RESTORE: 1
DOKKU_DOCKERFILE_PORT: 80
DOKKU_NGINX_PORT: 80
NODE_ENV: production
PATH_PREFIX: /admin
I'm logging from my build script, so at build time I see:
Step 1 : RUN NODE_ENV=production webpack -p
---> Running in 0826574bc4e0
===> Building with NODE_ENV 'production'
===> Building with PATH_PREFIX 'undefined'
===> Building with API_BASE 'undefined'
Hash: 54683fe2b93e4d330eed
Version: webpack 1.12.11
Time: 170802ms
...
The NODE_ENV
var is only set because I prefixed the Dockerfile build step with NODE_ENV=production
while the other vars I expect to be set (PATH_PREFIX
and API_BASE
) are still undefined
.
This is with dokku version 0.4.7
$ ssh dokku@test version
0.4.7