Open samhstn opened 7 years ago
If you are looking to start your phoenix server while running travis, the server won't start by default.
For example try running: MIX_ENV=test mix phoenix.server
MIX_ENV=test mix phoenix.server
Nothing will happen.
To be able to run the above command, you will need to change false to true in config/test.exs:
false
true
config/test.exs
config :app, App.Endpoint, http: [port: 4001], server: false
Now MIX_ENV=test mix phoenix.server will be running on http://localhost:4001
http://localhost:4001
If you are looking to start your phoenix server while running travis, the server won't start by default.
For example try running:
MIX_ENV=test mix phoenix.server
Nothing will happen.
To be able to run the above command, you will need to change
false
totrue
inconfig/test.exs
:Now
MIX_ENV=test mix phoenix.server
will be running onhttp://localhost:4001