Initial commit

This commit is contained in:
Yaser
2026-08-13 19:50:53 +03:30
commit 38084458fe
879 changed files with 95198 additions and 0 deletions

17
bin/daemons Normal file
View File

@@ -0,0 +1,17 @@
#!/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