Roda, Sequel, Dry-web skeleton project
First, navigate to the src
folder.
Execute bin/generate project_name
. Make sure that project_name is snake_case
- Run
cp config/application.example.yml config/application.yml
and fill the config - Run
cp config/postgres.example.yml config/postgres.yml
and fill the config - Run
cp config/influx.example.yml config/influx.yml
and fill the config - Run
bundle exec rake db:create
- Run
bundle exec rake influx:create
Execute puma config.ru -C config/puma.rb
to start the app server.
- Create the migration:
bundle exec rake db:migration[migration_name]
- Run the migration:
bundle exec rake db:migrate[version]
- Rollback the migration:
bundle exec rake db:rollback[step]
. Deafultstep
is 1 - Reset the DB:
bundle exec rake db:reset
Execute bin/console
to access development console
Execute bin/db
to access development console
To make the build faster, the gems are not installed during staging CI builds. Instead, bundle install
is called from entrypoint to make it possible to persist the gems in volume on the stage machine. If you want each run to be clean, just use production Dockerfile version for master branch builds.