Skip to content
Mark Mikofski edited this page Nov 23, 2022 · 1 revision

Welcome to the pvfree wiki!

Notes on Deployments to Heroku and Azure App Service

Heroku

Very easy, main requirements are a procfile which calls gunicorn <app>.wsgi, EG pvfree.wsgi which is a namespace/path to pvfree/wsgi.py

Azure App Service

Not as easy, but probably also my dumb fault.

Pitfalls!

  1. update the ALLOWED_HOSTS to include <app>.azurewebsites.net without the scheme (https://) or trailing slash
  2. update the runtime environment variables in Application settings, EG: for database creds and secret key
  3. set up logging by turning it on and setting files to keep for 30 days, then switch to log stream and wait a while, you will see logs, exceptions, and stack traces
  4. deployments can take over 10 minutes!
  5. use the B1 server, first 30 days are free?
  6. use SSH tab to connect from browser to shell, to run migrations, collect static files, trouble shoot, etc.

links: