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
5
start.sh
5
start.sh
@ -16,9 +16,12 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user