-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Mark Mikofski edited this page Nov 23, 2022
·
1 revision
Welcome to the pvfree wiki!
Very easy, main requirements are a procfile which calls gunicorn <app>.wsgi
, EG pvfree.wsgi
which is a namespace/path to pvfree/wsgi.py
Not as easy, but probably also my dumb fault.
- update the
ALLOWED_HOSTS
to include<app>.azurewebsites.net
without the scheme (https://
) or trailing slash - update the runtime environment variables in Application settings, EG: for database creds and secret key
- 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
- deployments can take over 10 minutes!
- use the B1 server, first 30 days are free?
- use SSH tab to connect from browser to shell, to run migrations, collect static files, trouble shoot, etc.
- https://learn.microsoft.com/en-us/azure/app-service/configure-language-python
- https://learn.microsoft.com/en-us/azure/app-service/configure-common
- https://learn.microsoft.com/en-us/azure/app-service/
- https://learn.microsoft.com/en-us/azure/app-service/deploy-github-actions
- https://learn.microsoft.com/en-us/azure/app-service/app-service-sql-asp-github-actions
- https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/tutorial-django-app-service-postgres
- https://learn.microsoft.com/en-us/azure/app-service/quickstart-python