Procfile
Procfile is a simple text file called Procfile that describe the components requiredto run an applications. It is the way to tell to tsuru how to runyour applications.
This document describes some of the moreadvances features of and the Procfile ecosystem.
A Procfile should look like:
- web: gunicorn -w 3 wsgi
Syntax
Procfile is a plain text file called Procfile placed at the root of yourapplication.
Each project should be represented by a name and a command,like below:
- <name>: <command>
The name is a string which may contain alphanumericsand underscores and identifies one type of process.
command is a shell commandline which will be executed tospawn a process.
Environment variables
You can reference yours environment variables in the command:
- web: ./manage.py runserver 0.0.0.0:$PORT
For more information about Procfile you can see the honcho documentationabout Procfiles: http://honcho.rtfd.org/en/latest/using_procfiles.html.