プログラミング的なSomething

プログラミング的なSomething

ITエンジニア(?)目線で生活・自転車・トレーニング話を綴ります

学習記録②「herokuへのpushがうまくいかない」

あらすじ

先日作成したbotから自動ポストを目論み、herokuでの実行を目指すがうまくいかず。

正直なぜできないのかよくわかっていないので、まずはメモ。
以下エラーコード。

2011-11-19T01:25:44+00:00 heroku[web.1]: State changed from crashed to created
2011-11-19T01:25:44+00:00 heroku[web.1]: State changed from created to starting
2011-11-19T01:25:46+00:00 heroku[web.1]: Starting process with command `thin -p 57608 -e production -R /home/heroku_rack/heroku.ru start`
2011-11-19T01:25:46+00:00 app[web.1]: <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- app.rb (LoadError)
2011-11-19T01:25:46+00:00 app[web.1]: 	from <internal:lib/rubygems/custom_require>:29:in `require'
2011-11-19T01:25:46+00:00 app[web.1]: 	from config.ru:1:in `block (3 levels) in <main>'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:23:in `eval'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:23:in `block (3 levels) in <main>'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:120:in `new'

:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:120:in `map'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:18:in `block (2 levels) in <main>'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:11:in `new'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:11:in `block in <main>'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /app/.bundle/gems/ruby/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:1:in `new'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /home/heroku_rack/heroku.ru:1:in `<main>'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `eval'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/rack/adapter/loader.rb:36:in `load'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:175:in `load_rackup_config'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:65:in `start'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/bin/thin:19:in `load'
2011-11-19T01:25:46+00:00 app[web.1]: 	from /usr/ruby1.9.2/bin/thin:19:in `<main>'
2011-11-19T01:25:46+00:00 heroku[web.1]: Process exited
2011-11-19T01:25:47+00:00 heroku[web.1]: State changed from starting to crashed
2011-11-19T01:26:13+00:00 heroku[router]: Error H10 (App crashed) -> GET busoren.heroku.com/ dyno= queue= wait= service= status=503 bytes=
2011-11-19T01:26:13+00:00 heroku[nginx]: 180.0.38.129 - - [18/Nov/2011:17:26:13 -0800] "GET / HTTP/1.1" 503 607 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.91 Safari/534.30" busoren.heroku.com
2011-11-19T01:26:13+00:00 heroku[router]: Error H10 (App crashed) -> GET busoren.heroku.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
2011-11-19T01:26:13+00:00 heroku[nginx]: 180.0.38.129 - - [18/Nov/2011:17:26:13 -0800] "GET /favicon.ico HTTP/1.1" 503 607 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.91 Safari/534.30" busoren.heroku.com

追記:heroku H10とかで検索される方が多かったので、このエラーを解決した手順を追記しました。別記事になりますが、参考になれば幸いです。
備忘録「herokuへのデプロイについて」

広告を非表示にする