-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
iex -S mix phoenix.server returns an ERROR. :bug #1355
Comments
Your port is in use, but you should have received a printed error before the stack that told you so. Try a different port |
I just verified, you should have seen this logged:
Can you try again and report back on whether or not you see that error logged? |
I'm quite new to elixir/phoenix how should i pass a port flag ? checked iex --help but couldn't find any. |
The default port is 4000, and it's set in
then |
When i used [error] Server can't start because :port in config is nil, please use a valid port number
[info] Application hello_phoenix exited: HelloPhoenix.start(:normal, []) returned an error: shutdown: failed to start child: HelloPhoenix.Endpoint
** (EXIT) shutdown: failed to start child: Phoenix.Endpoint.Server
** (EXIT) shutdown
=INFO REPORT==== 16-Nov-2015::18:24:26 ===
application: logger
exited: stopped
type: temporary
** (Mix) Could not start application hello_phoenix: HelloPhoenix.start(:normal, []) returned an error: shutdown: failed to start child: HelloPhoenix.Endpoint
** (EXIT) shutdown: failed to start child: Phoenix.Endpoint.Server
** (EXIT) shutdown |
Perfect! It reports the error as expected: |
Thanks 👍 |
Alternatively, you can do: |
When I fired the command
iex -S mix phoenix.server
i'm using your guide up and run ( http://www.phoenixframework.org/docs/up-and-running )[up and run] I got the following stack trace ( i believe this is an stack trace ), anyhow he's the info :The text was updated successfully, but these errors were encountered: