Make sure you have Ruby 2.2.3 installed.
$ gem install --no-ri --no-rdoc bundler
$ gem install --no-ri --no-rdoc nokogiri
# if using rbenv
$ rbenv rehash
Install gems:
$ bundle install
Create Postgres database:
CREATE DATABASE "news-getter";
$ rackup --host 0.0.0.0 -p 5000
# Available on:
# http://localhost:5000/
$ rspec
You need a Postgres container running on port 5432
with host named db
.
$ export APP_ENV="PRODUCTION"
$ rake metrics:all
# Build
$ docker build --no-cache --rm --tag=news-getter .
# Run
$ docker run --publish 5000:5000 --rm --name=news-getter news-getter