机架/乘客在 Dreamhost 上失败 [英] Rack / Passenger fails on Dreamhost

查看:53
本文介绍了机架/乘客在 Dreamhost 上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Rails 的新手 &Ruby 并一直在关注 http://ruby.railstutorial.org/ruby-on-rails-tutorial-book 和 amy 尝试将演示应用程序部署到启用了 Dreamhost 乘客的主机上,当我尝试运行该应用程序时失败:

I am new to Rails & Ruby and have been following the http://ruby.railstutorial.org/ruby-on-rails-tutorial-book and amy trying to deploy the demo app to my Dreamhost passenger enabled host and when I try to run the app if fails with:

Ruby (Rack) 应用程序无法启动

以及以下回溯(尽可能格式化):

and the following backtrace (formatting the best I can):

#   File    Line    Location
0   /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb  10  in `exit'
1   /usr/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/setup.rb  10  
2   /usr/lib/ruby/1.8/rubygems/custom_require.rb    36  in `gem_original_require'
3   /usr/lib/ruby/1.8/rubygems/custom_require.rb    36  in `require'
4   /home/oilfieldx/oilfieldexchange.com/releases/20120108233024/config/boot.rb 6   
5   /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `gem_original_require'
6   /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `require'
7   /home/oilfieldx/oilfieldexchange.com/releases/20120108233024/config/application.rb      1   
8   /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `gem_original_require'
9   /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `require'
10  /home/oilfieldx/oilfieldexchange.com/releases/20120108233024/config/environment.rb  2   
11  /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `gem_original_require'
12  /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `require'
13  config.ru   3   
14  /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb  46  in `instance_eval'
15  /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb  46  in `initialize'
16  config.ru   1   in `new'
17  config.ru   1   


我的 environment.rb 文件有:


My environment.rb file has:

# Load the rails application
<br>require File.expand_path('../application', __FILE__)

# Initialize the rails application
<br>DemoApp::Application.initialize!

我的应用程序在我的本地机器上运行良好,但一旦我部署它就崩溃.我猜我在配置文件中遗漏了一行,或者从我收集的研究中遗漏了一些与我的宝石有关的东西.

My app runs fine on my local machine but just craters once I deploy it. I am guessing I am missing a line in a config file or something to do with my gems from what I gather researching this.

推荐答案

我的答案最终是 Heroku :^)

My answer ended up being Heroku :^)

这篇关于机架/乘客在 Dreamhost 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆