Skip to content

Commit

Permalink
fix: append PORT to URL_PREFIX only if WHYD_URL_PREFIX is not provided (
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjoly committed Jun 9, 2019
1 parent 8260e49 commit e63ee79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ var params = (process.appParams = {
dev: process.env['WHYD_DEV'] || false, // hot re-loading of node controllers, models and views
port: process.env['WHYD_PORT'] || 8080, // overrides app.conf
urlPrefix:
(process.env['WHYD_URL_PREFIX'] || 'http://localhost:') +
(process.env['WHYD_PORT'] || 8080), // base URL of the app
process.env['WHYD_URL_PREFIX'] ||
`http://localhost:${process.env['WHYD_PORT'] || 8080}`, // base URL of the app
mongoDbHost: process.env['MONGODB_HOST'] || 'localhost',
mongoDbPort: process.env['MONGODB_PORT'] || mongodb.Connection.DEFAULT_PORT, // 27017
mongoDbAuthUser: process.env['MONGODB_USER'],
Expand Down

0 comments on commit e63ee79

Please sign in to comment.