fix procfile to be compatible with non-unix

This commit is contained in:
David Dollar
2011-09-12 19:07:14 -04:00
parent f7542083dd
commit 51376058d4
3 changed files with 7 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
ticker: ./ticker $PORT
error : ./error
ticker: ruby ./ticker $PORT
error : ruby ./error

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env ruby
$stdout.sync = true
puts "will error in 10s"
sleep 5
raise "Dying"

View File

@@ -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