]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/dev/server.sh
Add more embed parameters
[github/Chocobozzz/PeerTube.git] / scripts / dev / server.sh
index bff26cb4bbac80a5358b0a73c24336bea129a2d7..b4675c57f54c3d8b3a4f609e9382f40d9291d079 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