dwyl / learn-phoenix

:fire: Phoenix is the web framework without compromise on speed, reliability or maintainability! Don't settle for less. :rocket:
650 stars 45 forks source link

Running Phoenix server in Travis CI #91

Open samhstn opened 7 years ago

samhstn commented 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

Nothing will happen.

To be able to run the above command, you will need to change false to true in 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