Managing Multiple Projects
patternhelloworld
released this
06 Sep 08:55
·
140 commits
to main
since this release
How to upgrade your current docker-blue-green-runner (for previous users)
- You would like to use the latest version, so you use an upgraded version of 'docker-blue-green-runner', set
NGINX_RESTART=true
on your .env only one time, then, run
git pull origin main
bash run.sh
- However, as you know,
NGINX_RESTART=true
causes a short downtime. Make sureNGINX_RESTART=false
at all times. - This three files are no longer used (but it is OK if you don't manually remove them.)
rm docker-compose-app-real.yml
rm docker-compose-app-real.yml
rm docker-compose-nginx.yml
Managing Multiple Projects
- Store your .env as
.env.ready.*
(for me, like.env.ready.client
,.env.ready.server
) - When deploying
.env.ready.client
, simply runcp -f .env.ready.client .env
bash run.sh
- If you wish to terminate a project, run
bash stop-all-containers.sh