OCHA-DAP / hdx-infrastructure

3 stars 1 forks source link

make nginx easier to switch upstreams #135

Closed teodorescuserban closed 8 years ago

teodorescuserban commented 8 years ago

Small script perhaps?

teodorescuserban commented 8 years ago

related to #142 bumping priority.

teodorescuserban commented 8 years ago
  1. if you want to start a nginx container on the other web head from where ckan is, you can edit the env var passed to nginx container for HDX_CKAN_ADDR, HDX_BLOG_ADDR, HDX_CPS_ADDR, etc
  2. for usual reloads I will just make a short script (hopefully today).
teodorescuserban commented 8 years ago

Script made. It is called swup.py and will be present at /srv/swup.py in hdx-nginx image. The script has also been added to hdx-tools repo on bitbucket.

Happy switching! :) Closing.