Is it possible to configure a Procfile to support multiple web endpoints (either by port or subdomain)? Something like:
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
admin: bundle exec unicorn -p $ALT_PORT -c ./config/admin/unicorn.rb
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Only the
webwill get bound to a port, if you need multiple web endpoints you can either configure multiple dns entries to point at the same app, or you can deploy multiple seperate heroku apps. What do you hope to achieve by having two different process types with the same application code and we access?Update
I may have been wrong about the port only getting set for a web process.
You can run
$ heroku run bashand then$ echo $PORTand it looks like one gets set. However I have no idea how requests get routed to those processes versus the web process.