To start your Phoenix server:
- Install dependencies with
mix deps.get - Create and migrate your database with
mix ecto.create && mix ecto.migrate - Install Node.js dependencies with
cd assets && npm install - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000 from your browser.
- Set
HOST_URLto server's DNS name (without trailing/, e.g.localhost:4000)
- Set
SLACK_RTM_TOKENvariable (See: https://my.slack.com/services/new/bot)
- Ask @erich/@matej for github client id and secret / or use your own
- Set
ENV GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRET
Ready to run in production? Please check our deployment guides.
MIX_ENV=prod mix release --env=prodgigalixir databases $APP_NAME(Copy the database URL, e.g.postgresql://USER:[email protected]:PORT/UUID)MIX_ENV=prod DATABASE_URL="postgresql://USER:[email protected]:PORT/UUID" mix ecto.migrategigalixir restart $APP_NAME
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: https://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix