Skip to content

Commit

Permalink
reading env variable in the case defined in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaban committed Dec 29, 2023
1 parent 8ba1183 commit 22d71e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gofr-backend/lib/gofr-backend-site/bin/www
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env node
const siteConfig = require(`${__dirname}/../config/default.json`)

global["appsitepath" + process.pid] = process.env.APP__SITE__PATH || siteConfig.app.site.path
global["appcorepath" + process.pid] = process.env.APP__CORE__PATH || siteConfig.app.core.path
global["appsitepath" + process.pid] = process.env.app__site__path || siteConfig.app.site.path
global["appcorepath" + process.pid] = process.env.app__core__path || siteConfig.app.core.path
const ihrissmartrequire = require('ihrissmartrequire')


Expand Down

0 comments on commit 22d71e4

Please sign in to comment.