Я следую учебному пособию здесь :
Я прошел все шаги. В моем приложении есть config.ru, гемфайл и файл с надписью go! Это было просто для того, чтобы протестировать приложение, работающее на heroku, чтобы увидеть, как оно обрабатывается. К сожалению, я получаю очень странную ошибку.
Ниже мой git push согласно учебнику
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 git@heroku.com:myapp.git
d799d9c..93d7d15 master -> master
Кажется, достаточно просто. А вот героку пс дает
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 запускает приложения на ruby 1.9.2, но это не важно. Казалось бы, мне не хватает какого-то ssl-сертификата или переменной. Я определенно не использовал никаких функций, основанных на SSL, в моем скрипте 'go.rb', но, похоже, что-то требует.
Кто-нибудь может указать мне правильное направление здесь?
The config.ru
require './go'
run Sinatra::Application