Skip to content

Commit

Permalink
fix procfile to be compatible with non-unix
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Sep 12, 2011
1 parent f754208 commit 5137605
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/example/Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ticker: ./ticker $PORT
error : ./error
ticker: ruby ./ticker $PORT
error : ruby ./error
2 changes: 2 additions & 0 deletions data/example/error
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby

$stdout.sync = true

puts "will error in 10s"
sleep 5
raise "Dying"
4 changes: 3 additions & 1 deletion data/example/ticker
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby

%w( SIGINT SIGTERM SIGHUP ).each do |signal|
$stdout.sync = true

%w( SIGINT SIGTERM ).each do |signal|
trap(signal) do
puts "received #{signal} but i'm ignoring it!"
end
Expand Down

0 comments on commit 5137605

Please sign in to comment.