I'm learning how to deploy a Django project with Heroku.
And I notice two files in this repository (git from tutorial): https://github.com/heroku/python-getting-started
The file Procfile, I do understand what's for. However, the file Procfile.windows is something that I quite not understand.
Any help will be appreciated.
I'm just starting and running into the same issue. I believe that some django packages e.g. gunicorn don't work on Windows.
That's why the Heroku example app comes pre-packed with a separate "Procfile.windows" that does not use gunicorn.
To use it, do
heroku local -f Procfile.windows
... now just to find out how to make it the default.
Procfile.windows
is the file for Windows machine to run the application locally. Follow the steps below and try it out yourself:
Procfile.windows
at the same level where manage.py
resides.web: python manage.py runserver
heroku local web -f Procfile.windows
or heroku local -f Procfile.windows
Also, you can follow the steps from the official Heroku website (https://devcenter.heroku.com/articles/deploying-python#build-your-app-and-run-it-locally). This is probably the better way to do it in my opinion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With