mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
fixes for thumbnail worker
This commit is contained in:
parent
3e4e85ceee
commit
0aca6b3328
6 changed files with 48 additions and 21 deletions
|
@ -27,8 +27,6 @@ end
|
|||
DB = Sequel.connect $config['database'], sslmode: 'disable', max_connections: $config['database_pool']
|
||||
DB.extension :pagination
|
||||
|
||||
Dir.glob('workers/*.rb').each {|w| require File.join(DIR_ROOT, "/#{w}") }
|
||||
|
||||
if defined?(Pry)
|
||||
Pry.commands.alias_command 'c', 'continue'
|
||||
Pry.commands.alias_command 's', 'step'
|
||||
|
@ -59,9 +57,9 @@ if $config['pubsub_url'].nil? && ENV['RACK_ENV'] == 'production'
|
|||
raise 'pubsub_url is missing from config'
|
||||
end
|
||||
|
||||
require File.join(DIR_ROOT, 'workers', 'thumbnail_worker.rb')
|
||||
require File.join(DIR_ROOT, 'workers', 'screenshot_worker.rb')
|
||||
require File.join(DIR_ROOT, 'workers', 'email_worker.rb')
|
||||
#require File.join(DIR_ROOT, 'workers', 'thumbnail_worker.rb')
|
||||
#require File.join(DIR_ROOT, 'workers', 'screenshot_worker.rb')
|
||||
#require File.join(DIR_ROOT, 'workers', 'email_worker.rb')
|
||||
|
||||
Sequel.datetime_class = Time
|
||||
Sequel.extension :core_extensions
|
||||
|
@ -76,6 +74,9 @@ Sequel::Migrator.apply DB, './migrations'
|
|||
Stripe.api_key = $config['stripe_api_key']
|
||||
|
||||
Dir.glob('models/*.rb').each {|m| require File.join(DIR_ROOT, "#{m}") }
|
||||
Dir.glob('workers/*.rb').each {|w| require File.join(DIR_ROOT, "/#{w}") }
|
||||
|
||||
|
||||
#DB.loggers << Logger.new(STDOUT) if ENV['RACK_ENV'] == 'development'
|
||||
|
||||
if ENV['RACK_ENV'] == 'development'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue