feat(docker): Prep master for docker deploys

This commit is contained in:
Bouncey
2019-02-04 11:42:31 +00:00
committed by mrugesh mohapatra
parent 9e4583b1f3
commit d79f9f4899
19 changed files with 841 additions and 652 deletions

21
config/env.js Normal file
View File

@ -0,0 +1,21 @@
const path = require('path');
if (process.env.NODE_ENV !== 'production') {
const envPath = path.resolve(__dirname, '../.env');
require('dotenv').config({ path: envPath });
}
const {
HOME_LOCATION: home,
API_LOCATION: api,
FORUM_LOCATION: forum,
LOCALE: locale,
} = process.env;
const locations = {
homeLocation: home,
apiLocation: api,
forumLocation: forum
};
module.exports = Object.assign(locations, { locale });