Permalink
Browse files

fix procfile to be compatible with non-unix

  • Loading branch information...
1 parent f754208 commit 51376058d4cad8a99b57230aaf6936f14d3b8a06 @ddollar ddollar committed Sep 12, 2011
Showing with 7 additions and 3 deletions.
  1. +2 −2 data/example/Procfile
  2. +2 −0 data/example/error
  3. +3 −1 data/example/ticker
@@ -1,2 +1,2 @@
-ticker: ./ticker $PORT
-error : ./error
+ticker: ruby ./ticker $PORT
+error : ruby ./error
View
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby
+$stdout.sync = true
+
puts "will error in 10s"
sleep 5
raise "Dying"
View
@@ -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

0 comments on commit 5137605

Please sign in to comment.