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_URL
to server's DNS name (without trailing/
, e.g.localhost:4000
)
- Set
SLACK_RTM_TOKEN
variable (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_ID
andGITHUB_CLIENT_SECRET
Ready to run in production? Please check our deployment guides.
MIX_ENV=prod mix release --env=prod
gigalixir databases $APP_NAME
(Copy the database URL, e.g.postgresql://USER:PASS@tier-1.gigalixir.com:PORT/UUID
)MIX_ENV=prod DATABASE_URL="postgresql://USER:PASS@tier-1.gigalixir.com:PORT/UUID" mix ecto.migrate
gigalixir 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