Plan to release:

Release on
Deployment scripts
Build
- Checkout on
release/w02-2021
branch - Build
nvm install && nvm use && yarn && yarn build-production
cd build-dist && php -S localhost:3000 && cd -
- Try placing an order, see if it's ok
- Commit code
git add . && git commit -m "build 20210113" && git push
git checkout production && git pull && git merge release/w02-2021 --no-ff && git push
Deploy
- Access to production server
- Go to frontend folder
cd /var/www/html
ls
- Pull from
origin/production
git pull --prune
Roll back plan
- Checkout to previous commit
- Change
HASH_LENGTH
in webpack.config.prod.js
- Build & re deploy
Post deploy
- Merge
release
branch to staging
branch - Merge
production
branch to master
branch
git checkout --track origin/staging && git pull && git merge origin/release/w02-2021 && git push
git checkout master && git pull && git merge origin/production && git push
Inform team