Simple HTTP server that serves journal entries from a Postgres DB.
-
Source the
.envrc, either usingdirenv, or manually withsource .envrc. -
Start the database server with
postgres; the variables set in the previous step will make sure that thepostgresdirectory is used. -
Migrate the database:
bundle exec rake db:migrate -
Run the app:
rerun bundle exec ruby app.rb
$ bundle exec rake docker:build
$ docker run -it --rm suhlig/journal
$ bundle exec rake docker:pushWe do not rely on proper service startup order as it would only complicate things.
$ docker-compose up db
$ docker-compose run web bundle exec rake db:migrate
$ docker-compose up web$ bundle exec sequel $DB