Skip to content

michalkorzawski/bikeramp

Repository files navigation

README

Setup

  1. create .env file based on .env.template

    cp .env.template .env
  2. build

docker-compose build

  1. setup database

docker-compose run --rm web rails db:setup

  1. run

docker-compose up

Tests

docker-compose run --rm web rspec to run rspec tests

Code analyzer

docker-compose run --rm web rubocop to run rubocop docker-compose run --rm web rubocop -a to run rubocop in the auto-correct mode

Debugging

You need to run rails server with ports expose to the host. It can by achieved by --service-ports flag.

docker-compose run --service-ports web

Now you can put binding.pry anywhere in the code. The code execution will stop in this point and you can then start “asking” questions like params or try to reach some variables etc.

Deprecation warnings

RUBYOPT='-W:no-deprecated -W:no-experimental' + rails commands

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages