Simple HTTP server that serves journal entries from a Postgres DB.
393
Simple HTTP server that serves journal entries from a Postgres DB.
Source the .envrc, either using direnv, or manually with source .envrc.
Start the database server with postgres; the variables set in the previous step will make sure that the postgres directory 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:push
We 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
sequel database monitor$ bundle exec sequel $DB
Content type
Image
Digest
Size
178.9 MB
Last updated
over 5 years ago
docker pull suhlig/journal