Frontend: correction first start

This commit is contained in:
wpetit 2020-02-18 14:45:13 +01:00
parent 5fe7a9019c
commit 5efe3e5586
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,13 @@
#!/bin/sh
FIRST_RUN_FLAG_FILE="/.first-run"
if [ ! -e "$FIRST_RUN_FLAG_FILE" ]; then
echo "Installing dependencies. Please wait..."
npm install
touch "$FIRST_RUN_FLAG_FILE"
fi
npm start -- --host 0.0.0.0 --port 8000