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 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.
Check your app's source. Look for anything dealing with asset_host. My
guess is something is prepending this to your image helper, and
asset_host will do that if you tell it to.
If you create a new Rails app, you'll be able to test this out by
making a controller and a view. On the view, just link to the
rails.png image in the /images folder that ships with a defalt app.
<%=image_tag "rails.png" %>
If that gives you trouble, then it's not your code.