lib/pushpop.rb in pushpop-0.3.2 vs lib/pushpop.rb in pushpop-0.3.3
- old
+ new
@@ -39,10 +39,14 @@
# If we start this thread with no routes, it will throw off the all_waits listener
# and we don't want to start the web server willy nilly, because it looks weird
# on the CLI interface
if web.routes.length > 0
Thread.new do
- @web.app.run!
+ if ENV['PORT']
+ @web.app.run! :port => ENV['PORT']
+ else
+ @web.app.run!
+ end
end
else
false
end
end