2017-03-28 33 views
2

當我運行heroku run rails console,我的堆棧跟蹤寫着:Heroku的控制檯不會boot-無法加載這樣的文件 - 機架/處理器/控制檯

Running rails console on ⬢ canvas-gattaca... up, run.8126 (Standard-1X) 
Exiting 
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- rack/handler/console (LoadError) 
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `block in require' 
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:240:in `load_dependency' 
    from /app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.5.2/lib/active_support/dependencies.rb:274:in `require' 
    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.5/lib/rack/handler.rb:90:in `try_require' 
    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.5/lib/rack/handler.rb:16:in `get' 
    from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.5/lib/rack/server.rb:290:in `server' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands/server.rb:125:in `print_boot_information' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands/server.rb:75:in `start' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:80:in `block in server' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:75:in `tap' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:75:in `server' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 
    from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.5.2/lib/rails/commands.rb:17:in `<top (required)>' 
    from bin/rails:9:in `require' 
    from bin/rails:9:in `<main>' 

我的日誌閱讀:

2017-03-28T19:02:33.583671+00:00 app[api]: Starting process with command `bundle exec rails server console` by user [email protected] 
2017-03-28T19:02:37.784210+00:00 heroku[run.4264]: Awaiting client 
2017-03-28T19:02:37.827306+00:00 heroku[run.4264]: Starting process with command `bundle exec rails server console` 
2017-03-28T19:02:38.058988+00:00 heroku[run.4264]: State changed from starting to up 
2017-03-28T19:02:45.391746+00:00 heroku[run.4264]: State changed from up to complete 
2017-03-28T19:02:45.377045+00:00 heroku[run.4264]: Process exited with status 1 

我Procfile-

rails: bundle exec rails server 
webpack: ./node_modules/.bin/webpack-dev-server --config config/webpack.config.js 

我是否缺少任何東西?

回答

2

你可以試試這個方法:

heroku run console

+0

我覺得很不好意思,這是完全的作品。謝謝! – colincr

+0

總是樂於幫忙! – AlexeyKuznetsov