meirim-org / meirim

Meirim is an open-source smart city application that facilitates transparency in urban planning.
MIT License
56 stars 24 forks source link

CD for meirim client and server #602

Open GalGend opened 1 year ago

GalGend commented 1 year ago

This task is about creating an automated deployment to meirim EC2 servers, running using github actions.

Currently, we want to support deployment to our 2 servers: stg + prd.

Below are the steps that should be executed to deploy:

// (on server root folder)
cd meirim
git fetch
git checkout <branch_name>
git pull 
cd client
npm run build 
cd ../server
knex migrate:latest
 cd ~
 npx pm2 reload meirim
schshmuel commented 1 year ago

Hi Gal, what is the address of the prod and stg servers? Which branches needs to deployed the stg?