Created
October 4, 2021 15:08
-
-
Save idemax/29e03e8c2bd33e7a7e1d0490071f6d67 to your computer and use it in GitHub Desktop.
update SPA BE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pre-requisites: | |
# - installed NVM via Homebrew | |
# - follow the projects README initial setup | |
# !/bin/bash | |
docker stop $(docker ps -a -q) || true | |
echo "====================" | |
echo "setting up events..." | |
echo "--------------------" | |
cd events | |
. $(brew --prefix nvm)/nvm.sh | |
nvm use || true | |
npm install || true | |
docker-compose up -d || true | |
npm run db:migration || true | |
npm run db:seed || true | |
docker stop $(docker ps -a -q) || true | |
echo "====================" | |
echo "setting up raisl api..." | |
echo "--------------------" | |
cd ../saas-rails-api | |
docker-compose build --progress=plain || true | |
docker stop $(docker ps -a -q) || true | |
echo "====================" | |
echo "setting up SPA..." | |
echo "--------------------" | |
cd ../saas-spa | |
. $(brew --prefix nvm)/nvm.sh | |
nvm use || true | |
yarn || true | |
cd .. | |
docker ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment