Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
46 lines (35 loc) · 1.25 KB

DOCKER.md

File metadata and controls

46 lines (35 loc) · 1.25 KB

Running Klaxon with Docker

Development Quickstart

  1. Run the following commands:
docker-compose up -d database
docker-compose build app
docker-compose run app rake db:create db:migrate
docker-compose run app rake users:create_admin
docker-compose up app
open http://localhost:3000
  1. Enter '[email protected]' in the email window. It should redirect you to a page that says: "Email Sent".

  2. In the console find where it says "Go to Dashboard ( ... )" and copy and paste the link into the browser.

  3. You'll now be logged in. The page should say "Watch Your First Item".

Expected environmental variables

Klaxon needs certain environmental variables to be able to run. One way to accomplish this in Docker is with an env file. Below is a template for setting one up.

DATABASE_URL=
SECRET_KEY_BASE=
ADMIN_EMAILS=
SENDGRID_USERNAME=
SENDGRID_PASSWORD=

If you would like to use Amazon SES instead to send emails, you'll need a different set of environmental variables.

DATABASE_URL=
SECRET_KEY_BASE=
ADMIN_EMAILS=
SMTP_PROVIDER=SES
SES_ADDRESS=
SES_USERNAME=
SES_PASSWORD=
SES_DOMAIN=
MAILER_FROM_ADDRESS=