ruby app crashes on heroku: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch -


i trying load simple ruby app on heroku periodically runs background task using resque, checks email account. works fine locally foreman, keeps crashing on heroku.

i think maybe error r10 (boot timeout) -> web process failed bind $port within 60 seconds of launch comes while loop, perpetual , therefore longer 60 seconds? should using different kind of process launch smsnotify.rb?

any extremely appreciated!

my heroku logs:

2013-04-06t20:49:15+00:00 heroku[slugc]: slug compilation finished 2013-04-06t20:49:18+00:00 heroku[web.1]: starting process command `bundle exec ruby smsnotify.rb -p 9129` 2013-04-06t20:49:21+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/multibyte.rb:26: warning: initialized constant valid_character 2013-04-06t20:50:19+00:00 heroku[web.1]: error r10 (boot timeout) -> web process failed bind $port within 60 seconds of launch 2013-04-06t20:50:19+00:00 heroku[web.1]: stopping process sigkill 2013-04-06t20:50:20+00:00 heroku[web.1]: process exited status 137 2013-04-06t20:50:20+00:00 heroku[web.1]: state changed starting crashed 

my procfile:

web: bundle exec ruby smsnotify.rb -p $port resque: env term_child=1 bundle exec rake jobs:work 

smsnotify.rb:

require "./email_checker" require 'hirefire' require 'resque'  resque.redis = 'redis://redistogo:removed:removed/' hirefire::initializer.initialize!  while true   resque.enqueue(emailchecker)   sleep 30   puts "starting email job" end 

you aren't starting process binding port, complaining.

you need change procfile 'worker' instead of 'web'

if have web frontend this, need worker , web


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -