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. But when I tried to configure rails 3.2.2 in similar fashion, I got lots of errors. The main issue is that only the contents in the public/ directory are accessible. I tried creating a Home controller with an index page, added 'root :to => "home#index"' to config/routes.rb and deleted 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. Please help me.


Try these commands.

$ rake assets:precompile Compiles the assets

$ 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
链接地址: http://www.djcxy.com/p/32400.html

上一篇: nginx 1.2.0与导轨3.2.3和乘客3.0.12

下一篇: 如何使用Ruby 1.9.3,passenger,nginx和rvm安装rails 3.2.2?