18F / 2015-foia-hub

A consolidated FOIA request hub.
Other
49 stars 17 forks source link

Flip Cloud Foundry deploy into production mode #617

Closed konklone closed 9 years ago

konklone commented 9 years ago

It's been running in the development environment, but should be flipped to the production environment. The production environment will need to add more hostnames to ALLOWED_HOSTS in foia_hub/settings/production.py.

To flip the app to production:

cf set-env foia-a DJANGO_SETTINGS_MODULE foia_hub.settings.production
cf set-env foia-b DJANGO_SETTINGS_MODULE foia_hub.settings.production

Then redeploy:

cf restage foia-a
cf restage foia-b
konklone commented 9 years ago

A few notes here:

In the meantime, our CloudFoundry staging domain (foia.cf.18f.us?) will continue to be fine to be accessed over http:// if it remains in development mode.

In other words: don't run the above command and close this ticket until #553 is closed.

khandelwal commented 9 years ago

As discussed before - I set up a staging environment last week. It runs here: http://openfoia-staging.cf.18f.us/ (no https setup).

konklone commented 9 years ago

The production app(s), foia-a and foia-b are now in production mode and have been re-deployed. I updated the commands at the top to reflect the process I went through.