Setting up a New Nginx Instance on Webfaction

These are mostly notes for me.

  1. Create custom app listening on port
  2. Create app for serving static
  3. If its an https site and you want http redirected to it, do this.
  4. Edit bash script make_nginx.sh
  5. Run script using: bash -e make_nginx.sh | tee make_nginx.sh
  6. Modify server.py file
  7. Add server.py hack to settings.py
  8. Copy or update fabfile to use new server.py file
  9. Setup DB
  10. Edit wsgi.py
  11. Add symbolic link to wsgi.py
  12. Add local_settings.py to app
  13. Make sure email is on in local_settings
  14. Make sure ALLOWED_HOSTS is correct in project settings

Useful resources:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s