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.ymland fill the config - Run
cp config/postgres.example.yml config/postgres.ymland fill the config - Run
cp config/influx.example.yml config/influx.ymland 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]. Deafultstepis 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.