-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error R10 -> Web process failed to bind to $PORT within 60 seconds of launch #73
Comments
I made another container with older version of the environment. And in the same container that presents the issue I made an app with Both works without any problem. What am I missing??? |
The problem seems to be with phoenix 1.3 command Then I create another container with older versions of everything (except node) and it works too. But when I create the app with I don't know if is the buildpack or phoenix itself, @gjaldon, @chrismccord or anyone could please see if it is just with me? |
@danielfoxp2 did you manage to find a fix? I could make it work by adding
|
@TiuTalk, I didn't. Because I made it work running with Next weekend I'll try in a new container what you described. If it works for me too it will be great, because my project now uses phoenix 1.3 with structure of 1.2. This is not good. |
I had a similar problem after migrating from Phoenix 1.2 to 1.3. Turned out I had forgotten to rename the endpoint module in
Remember to set the custom host if you're hosting the app under a custom domain. And lastly, make sure that your |
@TiuTalk Thank you for the solution. If you are Heroku is logging: Seems obvious now, but ruined my last 6 hours. elixir 1.7.4 |
@jomho Great! You solved my problem :) |
@jomho thanks! I was punching my head over this for the past few hours. We ought to update that documentation to include this fix. https://github.com/phoenixframework/phoenix/blob/master/guides/deployment/heroku.md |
i soved this error using |
@mayragss can you please elaborate where did you make the changes |
Hello guys!
I need serious help here, because I've already tried a lot - a very f lot - of things (including the #23 issue and others the google could find - different of him, my apps never works) to figure this out and got absolutely nothing. I don't even know if here is the right place to put it.
I am trying to deploy an app to heroku. I just create a regular phoenix 1.3 app and before start digging in my production code I like to make all the surrounds (db, acceptance tests, unit tests, deploy...) being ready. So there's almost nothing yet in my code besides what mix phx.new creates.
The few things I've changed was to prepare the app to be deployed to heroku. And I will show you what they are in a minute.
Following the phoenix guide on deploy to heroku I'm always ending up with this:
Sometimes, and I don't know why, I get a slightly different output:
I've tried (some of them was just to see if something changed, but no success):
config_vars_to_export
;Procfile
MIX_ENV=prod mix phx.server
to:MIX_ENV=prod mix phoenix.server
;MIX_ENV=dev mix phx.server
;MIX_ENV=dev mix deps.get && mix phx.server
mix phx.server
;always_rebuild=true
elixir-buildpack.config
andphoenix-static-buildpack.config
¹ ;I just can't figure out what is wrong.
My configuration is:
The
mix phx.server
works just fine in localhost. That's why I chose here to present my really painful pain.¹ I've create those
*-buildpack.config
to use the same version on heroku that my dev environment has - because I saw that the buildpacks works with older versions os erlang, elixir, phoenix, node... But this don't make difference because I removed those files and the error kept happening.I, in advance, appreciate and thanks all of you who take the time to help.
The text was updated successfully, but these errors were encountered: