mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
e5815737c1
- bumped gems - rm bots - rm pry byebug - added rubocop-shopify and corrected generated warnings
20 lines
385 B
Ruby
20 lines
385 B
Ruby
# frozen_string_literal: true
|
|
|
|
%x(rake db:prepare)
|
|
|
|
worker_process_count = (ENV["WORKER_PROCESSES"] || 4).to_i
|
|
|
|
preload_app true
|
|
worker_processes worker_process_count
|
|
timeout 10
|
|
|
|
initialized = false
|
|
before_fork do |_server, _worker|
|
|
Sequel::DATABASES.each(&:disconnect)
|
|
unless initialized
|
|
require "scheduler/daemon"
|
|
Scheduler::Daemon.start
|
|
initialized = true
|
|
end
|
|
end
|