mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 08:22:31 +01:00
Let node.js use the docker env
This commit is contained in:
parent
175d7a8517
commit
f48e7551f4
3 changed files with 2 additions and 4 deletions
|
|
@ -115,8 +115,6 @@ def main():
|
|||
logging.getLogger("werkzeug").setLevel(logging.WARNING)
|
||||
log = logging.getLogger('novnc2')
|
||||
|
||||
app.config["APPLICATION_ROOT"] = os.getenv("PREFIX_PATH")
|
||||
|
||||
entrypoint()
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
|
|||
|
||||
module.exports = merge(prodEnv, {
|
||||
NODE_ENV: '"development"',
|
||||
PREFIX_PATH: '"/app"'
|
||||
PREFIX_PATH: `"${process.env.PREFIX_PATH}"`
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
NODE_ENV: '"production"',
|
||||
PREFIX_PATH: '"/app"'
|
||||
PREFIX_PATH: `"${process.env.PREFIX_PATH}"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue