You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ ! -d "$HOME/.nvm" ]; then echo >&2 "nvm is required, but it's not installed. Aborting."; exit 1; fi
# command -v nvm >/dev/null 2>&1 || { echo >&2 "nvm is required, but it's not installed. Aborting."; exit 1; }
# Make NVM available for script use
export NVM_DIR=$HOME/.nvm;
source $NVM_DIR/nvm.sh;
# Recieved terminal argument
args=$1
if [ "$args" == "re-install" ] ; then
yes | npm i && cd app && nvm use && npm i && cd ../resfulservice && nvm use && npm i && cd .. && docker compose up
echo "Completed '$args' successfully!"
exit
elif [ "$args" == "install" ] ; then
# Compose V1 is no longer supported and will be removed from Docker Desktop in an upcoming release.
# See https://docs.docker.com/go/compose-v1-eol/
yes | rm -rf node_modules && npm i && cd app && rm -rf node_modules && nvm use && npm i && cd ../resfulservice && rm -rf node_modules && nvm use && npm i && cd .. && docker system prune -a && docker compose build