Slight modification to start script.

This commit is contained in:
Alexis Werefox 2021-04-19 05:42:15 +00:00
parent 6d5175cb45
commit 53da7bc5d2
2 changed files with 2149 additions and 2 deletions

2144
src/info/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -16,10 +16,13 @@ if [ ! -d "./src/info" ]; then
sudo chown -R $USER:$USER ./src
fi
if [ $MODE == "dev" ] || [ $MODE == "build" ] || [ $MODE == "start" ]; then
if [ $MODE == "dev" ] || [ $MODE == "start" ]; then
sudo MODE=$MODE docker-compose up --build --force-recreate --remove-orphans -d
sudo docker-compose logs -f
elif [ $MODE == "build" ]; then
sudo docker-compose run node bash -c "cd info && npm install"
sudo docker-compose run node bash -c "cd info && npm run build"
else
echo "Please use 'dev', 'build', or 'start' as an argument."
exit 1
fi
fi