Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.34 KB

README.md

File metadata and controls

72 lines (49 loc) · 1.34 KB

Verbes

Verbes is a French verb conjugation trainer.

Development Environment

Quick Start

Create the database image

$ make create-db

Start the database

$ make start-db

Create initial data

$ make run-app CMD=bash
# The following commands must be run in the app container
$ make migrate
$ make createsuperuser
$ make load-tenses load-most-frequent-verbs
$ exit

Run the app

$ make run-app

Deployment

On the Dokku host:

$ dokku apps:create verbes.mathieularose.com
$ dokku config:set verbes.mathieularose.com DEFAULT_FROM_EMAIL=<email>
$ dokku config:set verbes.mathieularose.com EMAIL_URL=<email url>
$ dokku config:set verbes.mathieularose.com SECRET_KEY=<secret key>
$ dokku postgres:create verbes
$ sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres
$ dokku postgres:link verbes verbes.mathieularose.com
$ dokku proxy:ports-add verbes.mathieularose.com http:80:5555

HTTPS

$ dokku config:set --no-restart verbes.mathieularose.com DOKKU_LETSENCRYPT_EMAIL=<e-mail>
$ sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
$ dokku letsencrypt verbes.mathieularose.com
$ dokku letsencrypt:cron-job --add

Author

Mathieu Larose mathieu@mathieularose.com