mirror of
https://github.com/yldio/copilot.git
synced 2024-11-11 05:40:11 +02:00
Fixing docker deployment
This commit is contained in:
parent
d507348e30
commit
6e7b83b82f
@ -11,7 +11,7 @@ install-production: compile
|
||||
|
||||
.PHONY: install
|
||||
install:
|
||||
yarn install --prefer-offline
|
||||
NODE_ENV=development yarn install --prefer-offline
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -15,7 +15,7 @@
|
||||
"test": "make test",
|
||||
"open": "nyc report --reporter=html & open coverage/index.html",
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -2,7 +2,9 @@ const path = require('path');
|
||||
|
||||
const ROOT = path.join(__dirname, '../..');
|
||||
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 = {
|
||||
ROOT,
|
||||
|
Loading…
Reference in New Issue
Block a user