aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/watch/server.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-22 08:55:05 +0200
committerChocobozzz <me@florianbigard.com>2019-10-22 08:55:05 +0200
commit02e51e2d755b779c29a1086533a270512a71d8f4 (patch)
treecbe1b44b9be08495ad232aedd4db1f89a179b432 /scripts/watch/server.sh
parent1f7bc0dd61853ae8488be3710fc2ce6034e43f60 (diff)
downloadPeerTube-02e51e2d755b779c29a1086533a270512a71d8f4.tar.gz
PeerTube-02e51e2d755b779c29a1086533a270512a71d8f4.tar.zst
PeerTube-02e51e2d755b779c29a1086533a270512a71d8f4.zip
Fix dev mode
Diffstat (limited to 'scripts/watch/server.sh')
-rwxr-xr-xscripts/watch/server.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/watch/server.sh b/scripts/watch/server.sh
index f6721a18e..635bebf8e 100755
--- a/scripts/watch/server.sh
+++ b/scripts/watch/server.sh
@@ -9,6 +9,9 @@ cp -r "./client/src/locale/target" "./client/dist/locale"
9 9
10rm -rf "./dist" 10rm -rf "./dist"
11 11
12mkdir "./dist"
13cp "./tsconfig.json" "./dist"
14
12NODE_ENV=test npm run concurrently -- -k \ 15NODE_ENV=test npm run concurrently -- -k \
13 "npm run tsc -- --sourceMap && npm run nodemon -- --delay 2 --watch ./dist dist/server" \ 16 "npm run tsc -- --sourceMap && cp -r ./server/static ./server/assets ./dist/server && npm run nodemon -- --delay 2 --watch ./dist dist/server" \
14 "npm run tsc -- --sourceMap --preserveWatchOutput -w" 17 "npm run tsc -- --sourceMap --preserveWatchOutput -w"