0

I have a git repository with two applications. One backend API, the other client-side application.

In my root Procfile, I have this:

api: cd apps/api && mix phx.server
clientside: cd apps/clientside && mix phx.server

However Heroku complains that there is no web process type.

heroku[router]: at=error code=H14 desc="No web processes running"

How can I tell Heroku to use a custom process in my procfile as the web process?

Sergio Tapia
  • 9,173
  • 12
  • 35
  • 59
  • Set web dynos to 1 with `heroku ps:scale web=1` and tell me what error you get after trying to run the webapp. – jeremye Sep 05 '17 at 19:41
  • I can't do that because the web process for Phoenix runs `mix phx.server` at the root folder of my umbrella, running both of my application on the same Heroku app. I need to specifically run my `api` or `clientside` process to only run one app. – Sergio Tapia Sep 05 '17 at 19:44
  • try `api: mix apps/api/phx.server` and `clientside: mix apps/clientside/phx.server` in the procfile and run the command `heroku ps:scale api=1 clientside=1` – jeremye Sep 05 '17 at 19:52
  • That's not the issue though, those dynos are on in their specific apps, that's fine. The problem is Heroku is not serving the router to these specific dynos, when they are the only dynos turned on in their specific heroku apps. I need a way to tell heroku "Use proc `clientside` to serve the heroku router." – Sergio Tapia Sep 05 '17 at 19:53
  • Hm. What's the reason that you can't change `clientside` to `web`? I hope I'm not being too annoying, just trying to understand the problem. – jeremye Sep 05 '17 at 19:58
  • I need to run different apps on different heroku apps. I can't specifiy two different apps with conditional logic in the `web` process. – Sergio Tapia Sep 05 '17 at 20:02
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/153713/discussion-between-illiteratecoder-and-sergio-tapia). – jeremye Sep 05 '17 at 20:05

0 Answers0