Create/modify the credential files using
rails credentials:edit --environment <ENVIRONMENT>
following the format in config/credentials.yml
and create/edit the .env
file following the format in .env.template
. Alternatively, if you have the PGP key, decrypt master.key.gpg
in the config
folder. Then copy over the credentials from running rails credentials:edit
to the credentials for the production environment using rails credentials:edit --environment production
.
Get a SendGrid API key or use a free mail service. The default mail service defaults to EMAIL_DOMAIN
, but can be changed to use SENDGRID_DOMAIN
by setting USE_SENDGRID=1
in the .env
file. Also, edit the rails credentials with credentials for a default email and SendGrid.
Install docker and docker-compose for your distribution.
In a terminal, run
docker-compose up -d --build
(Subsequent use may omit the -d
and --build
flag.)
Verify the containers are up
by running docker-compose up
. Then, set up the database by running
docker-compose run rails rake db:create db:migrate db:seed
(Must be done if the --build
flag is used.)
Stop the containers using
docker-compose down
(Use Ctrl-C
to stop the containers if the -d
flag was omitted.)
See the documentation
folder for our current work.