What's a Procfile 👀
I recently deployed a Python application on Heroku, there I encountered a
Procfile. This is what I got to know :
- The Procfile is a simple text file that is named
Procfilewithout a file extension. For example,
Procfile.txtis not a valid Procfile.
- It specifies the commands that are executed by the app on startup. For e.g A Django server.
- Example: If you want to run a python script on Heroku, your Procfile content should be
worker: python script.py