/theatre

Test and training project with Sinatra and Sequel

Primary LanguageRuby

Run in dev mode

To run an app you need to pull the image

docker pull evolsinats/theatre_app:1.0.1

then

docker-compose up -d

it will starts Postgres on port 5432 and puma on port 3500

Add this line to /etc/hosts if you want to devlop from host instead docker container.

127.0.0.1   postgres

Useful commands

Run migrations

bin/rake db:migrate

Run tests

bin/rspec spec

Generate a new migration with timestamp

bin/rake db:generate:migration <migration_name>

Get current DB version

bin/rake db:version

Run console

bin/console