]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/dev/server.sh
Add a warning when uploading videos using root
[github/Chocobozzz/PeerTube.git] / scripts / dev / server.sh
index bff26cb4bbac80a5358b0a73c24336bea129a2d7..beee5b8d49e4aacdd9e22a0eb10712f30dfb2ae3 100755 (executable)
@@ -1,8 +1,10 @@
-#!/usr/bin/env sh
+#!/bin/sh
 
-if [ ! -d "./client/dist" ]; then
-  echo "client/dist does not exist, compile client files..."
-  npm run build:client
+set -eu
+
+if [ ! -f "./client/dist/en-US/index.html" ]; then
+  echo "client/dist/en-US/index.html does not exist, compile client files..."
+  npm run build:client -- --light
 fi
 
 npm run watch:server