Slight modification to start script.
This commit is contained in:
parent
6d5175cb45
commit
53da7bc5d2
2144
src/info/package-lock.json
generated
Normal file
2144
src/info/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
start.sh
7
start.sh
@ -16,10 +16,13 @@ if [ ! -d "./src/info" ]; then
|
|||||||
sudo chown -R $USER:$USER ./src
|
sudo chown -R $USER:$USER ./src
|
||||||
fi
|
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 MODE=$MODE docker-compose up --build --force-recreate --remove-orphans -d
|
||||||
sudo docker-compose logs -f
|
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
|
else
|
||||||
echo "Please use 'dev', 'build', or 'start' as an argument."
|
echo "Please use 'dev', 'build', or 'start' as an argument."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user