Reputation: 2166
Here is my procfile:
web: cd client && npm start
api: bundle exec rails s -p 3001
The web app works perfectly and runs on port 80 (see here: https://trucktrack-demo.herokuapp.com/) However I cannot seem to find the port that the rails api is running on. Any ideas on how to find this port (it is not 3001)?
Thanks in advance :-)
Upvotes: 0
Views: 421
Reputation: 96934
From the Heroku Procfile docs:
The
web
process type is special as it’s the only process type that will receive HTTP traffic from Heroku’s routers. Other process types can be named arbitrarily.
If you want to have multiple HTTP applications running, you’re going to have to accomplish that a different way, as you can’t have more than one HTTP process type in an app. One option would be to run a completely separate Heroku app for the other HTTP app.
Upvotes: 1