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.
The deploy should be triggered manually
The action should be performed to master only by authorized users (@GalGend + @gruppin ).
On production, the branch deployed is master. Yet, it could be configurable
For stg, a branch will be selected from the list of branches.
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
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.
master
. Yet, it could be configurableBelow are the steps that should be executed to deploy: