[英]How to install rails 3.2.2 with Ruby 1.9.3, passenger, nginx and rvm?
I followed this tutorial to successfully install Rails 3.0.11 with ruby 1.9.3, passenger, nginx and rvm.我按照本教程使用 ruby 1.9.3、passenger、nginx 和 rvm 成功安装了 Rails 3.0.11。 But when I tried to configure rails 3.2.2 in similar fashion, I got lots of errors.
但是当我尝试以类似方式配置 rails 3.2.2 时,我遇到了很多错误。 The main issue is that only the contents in the public/ directory are accessible.
主要问题是只能访问 public/ 目录中的内容。 I tried creating a Home controller with an index page, added 'root:to => "home#index"' to config/routes.rb and deleted public/index.html.
我尝试创建一个带有索引页的主页 controller,将 'root:to => "home#index"' 添加到 config/routes.rb 并删除 public/index.html。 What I'm get is 'something went wrong' page.
我得到的是“出了点问题”页面。
I tried precompiling assets, but it didn't help.我尝试预编译资产,但没有帮助。
I'm using Ubuntu 10.04 for server.我正在使用 Ubuntu 10.04 作为服务器。 Please help me.
请帮我。
Try these commands.试试这些命令。
$ rake assets:precompile
Compiles the assets $ rake assets:precompile
编译资产
$ rake db:setup RAILS_ENV="production"
In anyway try run following commands:无论如何尝试运行以下命令:
$> sudo apt-get update && sudo apt-get upgrade
$> rvm get head
and then接着
$> rake db:migrate RAILS_ENV=production
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.