l1dge / techswap

Repo for the techswap project
2 stars 0 forks source link

Heroku resources #53

Closed bbelderbos closed 3 years ago

bbelderbos commented 3 years ago

Check out the training on PDM Kajabi, should cover most of what you'll need.

Basically you'll need to install the Heroku toolbar and you'll need 3 files: Procfile, runtime.txt and requirements.txt.

You need to add gunicorn to your requirements because that's how you run the app on Heroku.

On the platform we have this for the first two files:

$ more Procfile
release: python manage.py migrate
web: gunicorn mysite.wsgi --log-file -

$ more runtime.txt
python-3.9.2
l1dge commented 3 years ago

Helped a lot. Site wouldn't work without Debug == True. It was hiding some issues which are now fixed. Setting DEBUG_PROPAGATE_EXCEPTIONS to True also helped.