diff --git a/bin/schedule b/bin/schedule index 429752d..ed74c7f 100755 --- a/bin/schedule +++ b/bin/schedule @@ -1,8 +1,6 @@ #!/usr/bin/env ruby # frozen_string_literal: true -`rake db:setup` - require 'rufus-scheduler' scheduler = Rufus::Scheduler.new diff --git a/config/unicorn.rb b/config/unicorn.rb index e1e49e0..82d65c4 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +`rake db:setup` + worker_process_count = (ENV['WORKER_PROCESSES'] || 4).to_i preload_app true