Is it possible to manually specify an alternative Procfile on Heroku?
- by BillyBBone
I have a repository which can be deployed in two modes: one is a front-end web application, while the other is a data manipulating process which runs non-stop, 24x7.
The application runs on Django and connects to a Postgres database.
For architectural reasons that I won't go into, I'd like to deploy the app in front-end mode inside as one Heroku application, and deploy the same app (i.e. the same git repo) in the data agent mode, as another Heroku application.
Both applications will share the same Postgres connection string, and thus the data agent will feed the front-end app.
Is it possible to maintain two separate Procfiles in one repo? This would cause the 3 appropriate dynos to start in front-end mode, and would spin up another process entirely in the other mode.