diff options
author | Chocobozzz <me@florianbigard.com> | 2019-10-22 08:55:05 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-10-22 08:55:05 +0200 |
commit | 02e51e2d755b779c29a1086533a270512a71d8f4 (patch) | |
tree | cbe1b44b9be08495ad232aedd4db1f89a179b432 /scripts/watch/server.sh | |
parent | 1f7bc0dd61853ae8488be3710fc2ce6034e43f60 (diff) | |
download | PeerTube-02e51e2d755b779c29a1086533a270512a71d8f4.tar.gz PeerTube-02e51e2d755b779c29a1086533a270512a71d8f4.tar.zst PeerTube-02e51e2d755b779c29a1086533a270512a71d8f4.zip |
Fix dev mode
Diffstat (limited to 'scripts/watch/server.sh')
-rwxr-xr-x | scripts/watch/server.sh | 5 |
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 | ||
10 | rm -rf "./dist" | 10 | rm -rf "./dist" |
11 | 11 | ||
12 | mkdir "./dist" | ||
13 | cp "./tsconfig.json" "./dist" | ||
14 | |||
12 | NODE_ENV=test npm run concurrently -- -k \ | 15 | NODE_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" |