fix procfile to be compatible with non-unix
This commit is contained in:
1 parent
f7542083dd
commit
51376058d4
3 files changed
+7
-3
No files matched your search
@@ -1,2 +1,2 @@
|
|||||||
ticker: ./ticker $PORT
|
ticker: ruby ./ticker $PORT
|
||||||
error : ./error
|
error : ruby ./error
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
|
$stdout.sync = true
|
||||||
|
|
||||||
puts "will error in 10s"
|
puts "will error in 10s"
|
||||||
sleep 5
|
sleep 5
|
||||||
raise "Dying"
|
raise "Dying"
|
||||||
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
%w( SIGINT SIGTERM SIGHUP ).each do |signal|
|
$stdout.sync = true
|
||||||
|
|
||||||
|
%w( SIGINT SIGTERM ).each do |signal|
|
||||||
trap(signal) do
|
trap(signal) do
|
||||||
puts "received #{signal} but i'm ignoring it!"
|
puts "received #{signal} but i'm ignoring it!"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user