diff --git a/Makefile b/Makefile index bc41aaeee..cc886509b 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ stop: @docker-compose stop worker: - @$(MAKE) rails cmd="rake jobs:work" + @$(MAKE) rails cmd="rake jobs:work export WORKER=1" cli: @$(MAKE) rails cmd="/bin/bash" diff --git a/config/environments/development.rb b/config/environments/development.rb index ad2246fa1..e8cf8a048 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -4,10 +4,10 @@ Rails.application.configure do # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. - config.cache_classes = false + config.cache_classes = ENV['WORKER'] ? true : false # Do not eager load code on boot. - config.eager_load = false + config.eager_load = ENV['WORKER'] ? true : false # Show full error reports and disable caching. config.consider_all_requests_local = true