trabajo-afectivo/config/spring.rb
Thorsten Eckel ca56de3648 Maintenance: Updated to Rails 6.0.4 and the new Zeitwerk autoloader.
This changes the minimum supported version of PostgreSQL to 9.3.
2021-06-23 11:35:27 +00:00

46 lines
856 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
Spring.watch(
'.ruby-version',
'.rbenv-vars',
'tmp/restart.txt',
'tmp/caching-dev.txt',
)
module Spring
module Commands
class SchedulerRb
def call
load ::Rails.root.join('script/scheduler.rb')
end
end
Spring.register_command 'scheduler.rb', Spring::Commands::SchedulerRb.new
end
end
module Spring
module Commands
class WebsocketServerRb
def call
load ::Rails.root.join('script/websocket-server.rb')
end
end
Spring.register_command 'websocket-server.rb', Spring::Commands::WebsocketServerRb.new
end
end
module Spring
module Commands
class RailsServer < Rails
def command_name
'server'
end
end
Spring.register_command 'rails_server', RailsServer.new
end
end