fixed background worker in dev env

This commit is contained in:
zmagod 2017-08-23 17:10:45 +02:00
parent c34e4a0814
commit afa05c8c14
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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 = true
config.cache_classes = ENV['WORKER'] ? true : false
# Do not eager load code on boot.
config.eager_load = true
config.eager_load = ENV['WORKER'] ? true : false
# Show full error reports and disable caching.
config.consider_all_requests_local = true