PeerTube/scripts/dev/server.sh

11 lines
185 B
Bash
Raw Normal View History

2018-03-27 10:35:12 +02:00
#!/bin/sh
set -eu
2017-06-11 11:29:03 +02:00
2017-07-06 18:01:02 +02:00
if [ ! -f "./client/dist/index.html" ]; then
echo "client/dist/index.html does not exist, compile client files..."
2017-06-11 11:29:03 +02:00
npm run build:client
fi
npm run watch:server