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 --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
look into apache access_log, if there any regular requests to the js/image/css files.. I''m using passenger too without any problems... tom Steve Odom 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-- ==============================================================================Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz ============================================================================== --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom <steve.odom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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, > SteveSteve, 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
There are not any requests for my images showing up in my apache access_log where I use an image_tag. If I handroll the image ref like: <img src="/images/icons/add.gif" /> then it shows up fine. But if I use the image_tag helper like: <%= image_tag "icons/add.gif" %> ..it gets rendered like: <img alt="Add" src="http://localhost:3000/images/icons/add.gif? 1221425550" /> ..and is broken as a result. My stylesheet and js requests show up because I''m not using the rails helpers (stylesheet_tag_link). I used preference pane to set it up. I was under the impression I did not have to add an entry in my /etc/hosts file. This is a new macbook where I havent used webrick, mongrel, or thin. Any ideas? Steve On Mar 13, 3:14 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:3000to 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. HTH On Fri, Mar 13, 2009 at 3:50 PM, Steve Odom <steve.odom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > There are not any requests for my images showing up in my apache > access_log where I use an image_tag. If I handroll the image ref > like: > > <img src="/images/icons/add.gif" /> > > then it shows up fine. But if I use the image_tag helper like: > > <%= image_tag "icons/add.gif" %> > > ..it gets rendered like: > <img alt="Add" src="http://localhost:3000/images/icons/add.gif? > 1221425550" /> > > ..and is broken as a result. > > My stylesheet and js requests show up because I''m not using the rails > helpers (stylesheet_tag_link). > > I used preference pane to set it up. I was under the impression I did > not have to add an entry in my /etc/hosts file. > > This is a new macbook where I havent used webrick, mongrel, or thin. > > Any ideas? > > Steve > > On Mar 13, 3:14 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:3000to 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Well, how bout that. It was the facebooker plugin taking control of asset_host. Only appears to be a problem while running passenger. Thanks for the pointer Brian. Steve On Mar 13, 4:00 pm, Brian Hogan <bpho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > HTH > > On Fri, Mar 13, 2009 at 3:50 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > There are not any requests for my images showing up in my apache > > access_log where I use an image_tag. If I handroll the image ref > > like: > > > <img src="/images/icons/add.gif" /> > > > then it shows up fine. But if I use the image_tag helper like: > > > <%= image_tag "icons/add.gif" %> > > > ..it gets rendered like: > > <img alt="Add" src="http://localhost:3000/images/icons/add.gif? > > 1221425550" /> > > > ..and is broken as a result. > > > My stylesheet and js requests show up because I''m not using the rails > > helpers (stylesheet_tag_link). > > > I used preference pane to set it up. I was under the impression I did > > not have to add an entry in my /etc/hosts file. > > > This is a new macbook where I havent used webrick, mongrel, or thin. > > > Any ideas? > > > Steve > > > On Mar 13, 3:14 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:3000tothe > >> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
@Steve: Awesome! On Sat, Mar 14, 2009 at 9:14 AM, Steve Odom <steve.odom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Well, how bout that. It was the facebooker plugin taking control of > asset_host. Only appears to be a problem while running passenger. > > Thanks for the pointer Brian. > > Steve > > On Mar 13, 4:00 pm, Brian Hogan <bpho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> 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. >> >> HTH >> >> On Fri, Mar 13, 2009 at 3:50 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > There are not any requests for my images showing up in my apache >> > access_log where I use an image_tag. If I handroll the image ref >> > like: >> >> > <img src="/images/icons/add.gif" /> >> >> > then it shows up fine. But if I use the image_tag helper like: >> >> > <%= image_tag "icons/add.gif" %> >> >> > ..it gets rendered like: >> > <img alt="Add" src="http://localhost:3000/images/icons/add.gif? >> > 1221425550" /> >> >> > ..and is broken as a result. >> >> > My stylesheet and js requests show up because I''m not using the rails >> > helpers (stylesheet_tag_link). >> >> > I used preference pane to set it up. I was under the impression I did >> > not have to add an entry in my /etc/hosts file. >> >> > This is a new macbook where I havent used webrick, mongrel, or thin. >> >> > Any ideas? >> >> > Steve >> >> > On Mar 13, 3:14 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:3000tothe >> >> > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Well, how bout that. It was the facebooker plugin taking control of > asset_host. Only appears to be a problem while running passenger.Should be a problem with anything. I''ve got a facebooker site in development under mongrel and it sets asset host as well...> Thanks for the pointer Brian. > > Steve > > On Mar 13, 4:00 pm, Brian Hogan <bpho...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> 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. >> >> HTH >> >> On Fri, Mar 13, 2009 at 3:50 PM, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> >>> There are not any requests for my images showing up in my apache >>> access_log where I use an image_tag. If I handroll the image ref >>> like: >> >>> <img src="/images/icons/add.gif" /> >> >>> then it shows up fine. But if I use the image_tag helper like: >> >>> <%= image_tag "icons/add.gif" %> >> >>> ..it gets rendered like: >>> <img alt="Add" src="http://localhost:3000/images/icons/add.gif? >>> 1221425550" /> >> >>> ..and is broken as a result. >> >>> My stylesheet and js requests show up because I''m not using the >>> rails >>> helpers (stylesheet_tag_link). >> >>> I used preference pane to set it up. I was under the impression I >>> did >>> not have to add an entry in my /etc/hosts file. >> >>> This is a new macbook where I havent used webrick, mongrel, or thin. >> >>> Any ideas? >> >>> Steve >> >>> On Mar 13, 3:14 pm, Conrad Taylor <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> On Fri, Mar 13, 2009 at 1:01 PM, Steve Odom >>>> <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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:3000tothe >>>>> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---