StanisLove / theatre

Test and training project with Sinatra and Sequel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Test and training project with Sinatra and Sequel


Languages

Language:Ruby 96.6%Language:Dockerfile 3.4%