Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

"Welcome to NGINX" after switching from Dockerfile based deployment to Procfile #3949

Closed
olalonde opened this issue Jul 1, 2015 · 2 comments

Comments

@olalonde
Copy link
Contributor

olalonde commented Jul 1, 2015

I used to deploy with a custom Dockerfile but trying to use Procfile instead. It works locally when running foreman start web but when I deploy to Deis, I'm getting the "Welcome to NGINX" page. After deployment, I did deis ps:scale cmd=0 web=1 daemon=1. Logs don't show anything either, last line is 2015-07-01T14:04:13UTC deis[api]: olalonde scaled containers web=1 daemon=1 cmd=0.

Do I have to start my app on a specific port?

@bacongobbler
Copy link
Member

Yes, your app must listen on $PORT, which is identical to heroku's docunentation. :)

@olalonde
Copy link
Contributor Author

olalonde commented Jul 1, 2015

Ok thanks. I don't think this is in the Deis docs though (except that small Rails Procfile example - http://docs.deis.io/en/latest/using_deis/process-types/) might be a good idea to mention that the $PORT is there for a good reason :)

@olalonde olalonde closed this as completed Jul 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants