Move migration to top of unicorn config file

There's probably a cleaner way of doing this, but it should do for now.

Fixes #4
This commit is contained in:
Hakan Ensari 2019-04-27 14:57:27 +01:00
parent 6c48bcadbe
commit e28755f76c
2 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true # frozen_string_literal: true
`rake db:setup`
require 'rufus-scheduler' require 'rufus-scheduler'
scheduler = Rufus::Scheduler.new scheduler = Rufus::Scheduler.new

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
`rake db:setup`
worker_process_count = (ENV['WORKER_PROCESSES'] || 4).to_i worker_process_count = (ENV['WORKER_PROCESSES'] || 4).to_i
preload_app true preload_app true