我正在按照教程here: 我已經完成了所有步驟。我的應用程序有一個config.ru,一個gemfile和一個剛纔說的文件!這只是爲了測試在heroku上運行的應用程序,看看它是如何處理的。可悲的是我得到一個非常奇怪的錯誤。在heroku上啓動應用程序時出錯
下面是我的混帳推按教程
git push heroku master
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 596 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rack app detected
-----> Installing dependencies using Bundler version 1.1.rc.7
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
Using i18n (0.6.0)
Using multi_json (1.1.0)
Using activesupport (3.2.2)
Using builder (3.0.0)
Using activemodel (3.2.2)
Using bson (1.6.0)
Using mongo (1.6.0)
Using plucky (0.4.4)
Using mongo_mapper (0.11.0)
Using rack (1.4.1)
Using rack-protection (1.2.0)
Using tilt (1.3.3)
Using sinatra (1.3.2)
Using bundler (1.1.rc.7)
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby/Rack -> console, rake, web
-----> Compiled slug size is 3.7MB
-----> Launching... done, v5
http://myapp.herokuapp.com deployed to Heroku
To [email protected]:myapp.git
d799d9c..93d7d15 master -> master
似乎很簡單。但是Heroku的PS給
Process State Command
------- -------------- ------------------------------------
web.1 crashed for 4s bundle exec rackup config.ru -p $P..
很自然我查了日誌,但它們也可以被用阿拉伯語。
/
usr/lib/ruby/1.9.1/net/http.rb:678:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)
from /usr/lib/ruby/1.9.1/net/http.rb:678:in `block in connect'
from /usr/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:89:in `timeout'
from /usr/lib/ruby/1.9.1/net/http.rb:678:in `connect'
from /usr/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
from /usr/lib/ruby/1.9.1/net/http.rb:626:in `start'
from /usr/local/heroku/lib/heroku/client.rb:409:in `read_logs'
from /usr/local/heroku/lib/heroku/command/logs.rb:31:in `index'
from /usr/local/heroku/lib/heroku/command.rb:135:in `run'
from /usr/local/heroku/lib/heroku/cli.rb:9:in `start'
from /usr/bin/heroku:30:in `<main>'
我認爲是的Heroku上運行紅寶石1.9.2應用但那並不重要。看起來我錯過了某種SSL證書或變量。我絕對沒有在我的'go.rb'腳本中使用任何基於SSL的功能,但它似乎仍然需要一些東西。
任何人都可以在正確的方向指向我嗎?
的config.ru
require './go'
run Sinatra::Application
這看起來像Heroku的工具實際上可能是一個問題,但我不確定。您可能想要[Heroku支持](http://support.heroku.com/)。 – 2012-03-03 18:45:07
看起來像你的config.ru有什麼問題 – three 2012-03-03 18:51:17