-1

ローカルでは問題なく動作しますが、Heroku では動作しない、非常に単純な Ruby Serveプロトタイプ Web サイトがあります。

Aug 02 12:35:40 localp app/web.1:  [2013-08-02 11:35:40] INFO  WEBrick 1.3.1 
Aug 02 12:35:40 localp app/web.1:  [2013-08-02 11:35:40] INFO  ruby 1.9.3 (2013-06-27) [x86_64-linux] 
Aug 02 12:35:40 localp app/web.1:  [2013-08-02 11:35:40] INFO  WEBrick::HTTPServer#start: pid=2 port=4000 
Aug 02 12:36:39 localp heroku/web.1:  Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 
Aug 02 12:36:39 localp heroku/web.1:  Stopping process with SIGKILL 
Aug 02 12:36:41 localp heroku/web.1:  Process exited with status 137 
Aug 02 12:36:41 localp heroku/web.1:  State changed from starting to crashed 

これは私が得るローカル警告であるため、gemが正しくロードされていないことに関係があると思います:

[2013-08-02 12:39:22] INFO  WEBrick 1.3.1
[2013-08-02 12:39:22] INFO  ruby 1.9.3 (2012-10-12) [x86_64-darwin12.2.0]
[2013-08-02 12:39:22] INFO  WEBrick::HTTPServer#start: pid=79265 port=4000
WARN: serve autoloading 'slim' in a non thread-safe way; explicit require 'slim' suggested.
WARN: serve autoloading 'slim' in a non thread-safe way; explicit require 'slim' suggested.
WARN: serve autoloading 'slim' in a non thread-safe way; explicit require 'slim' suggested.
WARN: serve autoloading 'slim' in a non thread-safe way; explicit require 'slim' suggested.
WARN: tilt autoloading 'redcarpet' in a non thread-safe way; explicit require 'redcarpet' suggested.
WARN: tilt autoloading 'rdiscount' in a non thread-safe way; explicit require 'rdiscount' suggested.
127.0.0.1 - local [02/Aug/2013 12:40:10] "GET /wireframes/ HTTP/1.1" 200 - 0.2049
127.0.0.1 - local [02/Aug/2013 12:40:10] "GET /styles/style.css HTTP/1.1" 200 765 0.0018
127.0.0.1 - local [02/Aug/2013 12:40:10] "GET /favicon.ico HTTP/1.1" 404 31 0.0026

gem を明示的に要求しようとしましたが、同じエラー メッセージが表示されます。これが私のGemfileです:

source 'https://rubygems.org'
ruby '1.9.3'
gem 'serve', '1.5.2'

gem 'rack-contrib'
gem 'compass'
gem 'sass-globbing'
gem 'rdiscount', :require => 'rdiscount'
gem 'slim', :require => 'slim'

FWIW、ここに私のProcfileがあります:

web: bundle exec rackup config.ru -p $PORT

私はStack Overflow全体を見てきました。いくつかの答えがありますが、Rails でアセットをプリコンパイルすることに関連しています。問題が何であるかについて何か考えはありますか?

4

1 に答える 1