Merge pull request #752 from ZmagoD/testin-rails-5-addons

fix background worker bug
This commit is contained in:
Zmago Devetak 2017-08-25 08:05:21 +02:00 committed by GitHub
commit 994b08fcfc
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 = 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