mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
/!\ Use a dedicated config file for development
It means you have to replace NODE_ENV=test to NODE_ENV=dev if you use it npm run dev:* commands are already updated
This commit is contained in:
parent
630d0a1bf5
commit
9452d4fd33
26 changed files with 207 additions and 106 deletions
|
@ -9,12 +9,12 @@ if [ ! -z ${2+x} ] && [ "$2" = "--ar-locale" ]; then
|
|||
fi
|
||||
|
||||
clientCommand="cd client && node --max_old_space_size=4096 node_modules/.bin/ng serve --proxy-config proxy.config.json --hmr --configuration $clientConfiguration --host 0.0.0.0 --disable-host-check --port 3000"
|
||||
serverCommand="npm run build:server && NODE_ENV=test node dist/server"
|
||||
serverCommand="npm run build:server && NODE_ENV=dev node dist/server"
|
||||
|
||||
if [ ! -z ${1+x} ] && [ "$1" = "--skip-server" ]; then
|
||||
NODE_ENV=test eval $clientCommand
|
||||
eval $clientCommand
|
||||
else
|
||||
NODE_ENV=test node node_modules/.bin/concurrently -k \
|
||||
node node_modules/.bin/concurrently -k \
|
||||
"$clientCommand" \
|
||||
"$serverCommand"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue