2022-01-01 13:38:12 +00:00
|
|
|
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
|
2021-06-01 12:20:20 +00:00
|
|
|
|
2021-06-23 11:35:27 +00:00
|
|
|
Spring.watch(
|
|
|
|
'.ruby-version',
|
|
|
|
'.rbenv-vars',
|
|
|
|
'tmp/restart.txt',
|
|
|
|
'tmp/caching-dev.txt',
|
|
|
|
)
|
2019-07-04 11:16:55 +00:00
|
|
|
|
2018-10-01 20:00:26 +00:00
|
|
|
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
|