Is it possible to manually specify an alternative Procfile on Heroku?

Posted by BillyBBone on Server Fault See other posts from Server Fault or by BillyBBone
Published on 2013-09-11T02:41:10Z Indexed on 2013/10/19 3:58 UTC
Read the original article Hit count: 465

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about git

Related posts about django