On May 31, 2009, at 8:30 AM, John T. wrote:
> John T. wrote:
>> Hi,
>>
>> I updated my server with the latest Rails (2.3.2) and Passenger  
>> (2.2.2).
>> I also updated my Rails app to run under 2.3.2. It runs
>> fine locally under Mongrel.
>>
>> The app is deployed into my own home directory under: (deployed via
>> Capistrano)
>>  /users/me/public_html/myapp/current   (which is a symlink to the
>> actual app)
>> and it's accessed by the url:
>>  http://myserver.com/myapp
>>
>> I was getting routing errors, where Passenger/Apache could not find  
>> the
>> default route. But I found a post saying Passenger
>> has an issue with routing, so I added the RailsBaseURI to the
>> environment.rb file:
>
> ...
>
>> Processing ApplicationController#index (for 1.2.3.4 at 2009-05-30
>> 13:11:46) [GET]
>>
>> ActionController::RoutingError (No route matches
>> "/stylesheets/scaffold.css" with {:method=>:get}):
>
> <snipped>
>
> Hate to bump my own post, but I really could use some input... nothing
> I've tried works.
>
> Thanks.
> -- 

You didn't say what server you were using, but you need to point  
passenger to your *public* directory, not RAILS_ROOT as described  
here: 
http://www.modrails.com/documentation/Users%20guide%20Apache.html#_deploying_to_a_virtual_host_8217_s_root

The Apache VirtualHost section they use as an example is:

<VirtualHost *:80>
   ServerName www.mycook.com
   DocumentRoot /weebapps/mycook/public
</VirtualHost>

They have a section on nginx if that's the server you are using.

Hope this helps.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to