Skip to content

PrimeHammer/reddex

Repository files navigation

Reddex

Build Status Ebert

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.

Environment

  • Set HOST_URL to server's DNS name (without trailing /, e.g. localhost:4000)

Use Slack Integration

Login via Github on localhost

  • Ask @erich/@matej for github client id and secret / or use your own
  • Set ENV GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET

Ready to run in production? Please check our deployment guides.

Running Migrations on Gigalixir manually

  • 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

Learn more