Skip to content

Instantly share code, notes, and snippets.

@idemax
Created October 4, 2021 15:08
Show Gist options
  • Save idemax/29e03e8c2bd33e7a7e1d0490071f6d67 to your computer and use it in GitHub Desktop.
Save idemax/29e03e8c2bd33e7a7e1d0490071f6d67 to your computer and use it in GitHub Desktop.
update SPA BE
# 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