Sign inSign up

suhlig/journal

By suhlig

•Updated over 5 years ago

Simple HTTP server that serves journal entries from a Postgres DB.

Image
0

393

suhlig/journal repository overview

⁠Journal

Build Status

Simple HTTP server that serves journal entries from a Postgres DB.

⁠Development

⁠Local

  1. Source the .envrc, either using direnv, or manually with source .envrc.

  2. Start the database server with postgres; the variables set in the previous step will make sure that the postgres directory is used.

  3. Migrate the database:

    bundle exec rake db:migrate
    
  4. Run the app:

    rerun bundle exec ruby app.rb
    

⁠Docker

$ bundle exec rake docker:build
$ docker run -it --rm suhlig/journal
$ bundle exec rake docker:push

⁠Docker Compose

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

⁠Troubleshooting

⁠Use the sequel database monitor

$ bundle exec sequel $DB

Tag summary

Content type

Image

Digest

Size

178.9 MB

Last updated

over 5 years ago

docker pull suhlig/journal