Skip to content

Commit

Permalink
This was a mistake
Browse files Browse the repository at this point in the history
I should not push git commits after late night drinking
  • Loading branch information
Humblemonk committed Aug 30, 2024
1 parent 5dd2147 commit 9bf9fcf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/dice_maiden.eye
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Ruby gem Eye config for process monitoring of Dice Maiden

require 'dotenv'

cwd = File.expand_path(File.join(File.dirname(__FILE__), %w[../]))

Dotenv.load("#{cwd}/.env")

total_shards = ENV['SHARD'].to_i

Eye.config do
logger "/tmp/eye.log"
end
Expand All @@ -16,7 +22,7 @@ Eye.app 'dice_maiden' do
group 'shards' do
chain grace: 5.seconds

240.times do |i|
total_shards.times do |i|
process "dice_maiden#{i}" do
pid_file "/tmp/dice_maiden#{i}.pid"
start_command "bundle exec ruby dice_maiden.rb #{i}"
Expand Down

0 comments on commit 9bf9fcf

Please sign in to comment.