🚀 Deployement ​
How to deploy features on DEV and UAT environnement ​
A continuous integration is setup using Github Action
Pushing on the uat branch, will automatically deploy on UAT environment.
Pushing on any other branch than main will deploy to DEV environment.
INFO
More information on the Continuous integration here
Deploy to Production ​
To deploy on prod :
Merge your
uattomainbranchCreate a new release version And create a new tag on
mainbranch with the release version followingv0.0.0formatOn the production server create a backup
sudo make create-backupThis command backups database, media files and qgis projects. (this can take several minutes)
- Checkout your branch (replace with the appropriate tag)
git fetch origin
git checkout tags/<replace-with-your-tag>- Deploy it
make deploy-prod- Check all is good, and website is reachable. Yes ? Congrats !
Issue, and unwanted data loss ? You can proceed with the next step.
Pull backup ​
DANGER
This operation will erase data, and will go to a previous state. Be careful if you use it
Go back to your previous version targeting a specific tag. And then pull the backup and redeploy.
git checkout tags/<replace-with-the-tag-you-want-to-revert-to>
make pull-backup tag=<replace-with-the-tag-you-want-to-revert-to>
make deploy-prod