2016-11-09 00:11:12 +01:00
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
process.env.webpackAssets = JSON.stringify(require('./static/dist/manifest.json'));
|
|
|
|
process.env.webpackChunkAssets = JSON.stringify(require('./static/dist/chunk-manifest.json'));
|
|
|
|
}
|
2016-05-03 06:09:16 +02:00
|
|
|
require('babel-register');
|
|
|
|
require('babel-polyfill');
|
2017-12-13 20:56:24 +01:00
|
|
|
let parsed = require('dotenv').config();
|
|
|
|
//// in development, let .env values override those in the environment already (i.e. in docker-compose.yml)
|
|
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
for (let key in parsed) {
|
|
|
|
process.env[key] = parsed[key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
require('./server/server');
|