Skip to content

Commit

Permalink
Corretto problema ENV per Node in production.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard1984 committed Nov 2, 2018
1 parent ac18aa5 commit d3814f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions server/config/env/env.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const env = process.env.NODE_ENV || 'development'

if (env === 'development') {
var config = require('./env.json')
var envConfig = config[env]
// if (env === 'development') {
const config = require('./env.json')
const envConfig = config[env]

Object.keys(envConfig).forEach((key) => {
process.env[key] = envConfig[key]
})
}
Object.keys(envConfig).forEach((key) => {
process.env[key] = envConfig[key]
})
// }

0 comments on commit d3814f8

Please sign in to comment.