mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
Merge pull request #752 from ZmagoD/testin-rails-5-addons
fix background worker bug
This commit is contained in:
commit
994b08fcfc
2 changed files with 3 additions and 3 deletions
2
Makefile
2
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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue