Fixing docker deployment

This commit is contained in:
Tom Gallacher 2017-01-06 16:24:37 +00:00
parent d507348e30
commit 6e7b83b82f
3 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ install-production: compile
.PHONY: install .PHONY: install
install: install:
yarn install --prefer-offline NODE_ENV=development yarn install --prefer-offline
.PHONY: clean .PHONY: clean
clean: clean:

View File

@ -15,7 +15,7 @@
"test": "make test", "test": "make test",
"open": "nyc report --reporter=html & open coverage/index.html", "open": "nyc report --reporter=html & open coverage/index.html",
"coverage": "nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100", "coverage": "nyc check-coverage --statements 100 --functions 100 --lines 100 --branches 100",
"build-locales": " CONFIG=$(pwd)/webpack/index.js NODE_ENV=test babel-node scripts/build-locales", "build-locales": " CONFIG=$(pwd)/webpack/index.js babel-node scripts/build-locales",
"clean-static": "git check-ignore static/** | xargs rm" "clean-static": "git check-ignore static/** | xargs rm"
}, },
"dependencies": { "dependencies": {

View File

@ -2,7 +2,9 @@ const path = require('path');
const ROOT = path.join(__dirname, '../..'); const ROOT = path.join(__dirname, '../..');
const UI = path.join(ROOT, 'ui'); const UI = path.join(ROOT, 'ui');
const FRONTEND = path.join(ROOT, 'frontend'); const FRONTEND = process.env.NODE_ENV === 'production'
? path.join(__dirname, '../')
: path.join(ROOT, 'frontend');
module.exports = { module.exports = {
ROOT, ROOT,