Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
Dir["#{Rails.root}/app/uploaders/*.rb"].each { |file| require file } | |
if defined?(CarrierWave) | |
CarrierWave::Uploader::Base.descendants.each do |klass| | |
next if klass.anonymous? | |
klass.class_eval do | |
def cache_dir | |
"#{Rails.root}/spec/support/uploads/cache" | |
end |