18 lines
454 B
Ruby
18 lines
454 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
# encoding: UTF-8
|
|
# frozen_string_literal: true
|
|
|
|
APP_ROOT = File.expand_path('..', __dir__)
|
|
|
|
def daemons
|
|
system 'nohup bundle exec ruby lib/daemons/amqp_daemon.rb matching >/dev/null 2>&1 &'
|
|
system 'nohup bundle exec ruby lib/daemons/amqp_daemon.rb trade_executor >/dev/null 2>&1 &'
|
|
system 'nohup bundle exec ruby lib/daemons/amqp_daemon.rb order_processor >/dev/null 2>&1 &'
|
|
end
|
|
|
|
Dir.chdir APP_ROOT do
|
|
daemons
|
|
end
|
|
|