On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom <[email protected]> wrote:

>
> Just switched over to passenger for development and production for my
> rails app. Liking it so far.
>
> My problem is my image_links, stylesheet_tag_links, and
> javascript_tag_links are all adding "http://localhost:3000 to the
> generated links. I got around the stylesheet and js links by not using
> the helpers.
>
> I can access my all of my assets directly via
> http://dating.local/stylesheets/all.css,
> for example.
>
> I used passenger pref pane to render the vhost. It looks like:
> <VirtualHost *:80>
>  ServerName dating.local
>  DocumentRoot "/Users/steveodom/Development/dating/public"
>  RailsEnv development
>  <directory "/Users/steveodom/Development/dating/public">
>    Order allow,deny
>    Allow from all
>  </directory>
>  ErrorLog "/Users/steveodom/Development/dating/log/apache.log"
> </VirtualHost>
>
> I'm not getting any errors in my development.log or apache error_log
>
> Everything should be standard. I've experimented with ProxyPass's but
> those didn't help.
>
> I'm using passenger 2.0.6, rails 2.2.2
>
> Any suggestions?
>
> Thanks,
> Steve


Steve, do you have the following line in your vhosts file:

NameVirtualHost *:80

Also, did you add an entry in your /etc/hosts file to contain the following:

127.0.0.1 dating.local

Last but not least, did you stop Mongrel, Webrick, or Thin?

-Conrad

--~--~---------~--~----~------------~-------~--~----~
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