Running `iex -S mix` also starts the web server

I am working on a project with several other developers.

A few days ago, I noticed that when I run iex -S mix, the entire web server starts up inside the console. WebPack runs, and a server gets fired up on port 4000.

I know you should be able to do this with iex -S mix phx.server, but this is not what I want in this case.

I have asked around, but no one knows anything about it.

So, my question is, how do i go about looking for where this might have been added?

Ideas?

Thanks!

Is this it?

config :my_app, MyAppWeb.Endpoint, server: true
3 Likes

Second this, AFAIK Phoenix Endpoint server would only be started if there’s this config somewhere. You might want to check config.exs / dev.exs / other exs file in config folder and see if there’s any config file which set server:true or special config. on latest version of elixir (1.6.6) server would only be true if you have environment variable PHX_SERVER. sometime people do custom logic in config file.

1 Like