ChuckE
2013-Jan-21 20:10 UTC
Set asset host port in a way similar to what application does
Concerning http://stackoverflow.com/questions/13266603/rails-how-to-set-port-number-for-the-asset-hosts-in-development I''m setting the full asset hosts in the environment files, being the one in development http://localhost:3000 . But let''s say I restart the application on port 3001. Assets won''t be fetched, and I have to change it accordingly all the time in the environment files. Wouldn''t it be a relevant feature to "inherit" the web server listened port unless another port is specified? I don''t know how web-server specific that might be, but it''d be cool to have such a feature. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/70H8BbdFcFgJ. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Николай Шебанов
2013-Jan-22 14:24 UTC
Re: Set asset host port in a way similar to what application does
All this stuff with ports, multiple definition of hosts etc. make me crazy. Completely agree with you, it should be somehow more integrated with default config and follow CoC. вторник, 22 января 2013 г., 0:10:02 UTC+4 пользователь ChuckE написал:> > Concerning > http://stackoverflow.com/questions/13266603/rails-how-to-set-port-number-for-the-asset-hosts-in-development > > I''m setting the full asset hosts in the environment files, being the one > in development http://localhost:3000 . But let''s say I restart the > application on port 3001. Assets won''t be fetched, and I have to change it > accordingly all the time in the environment files. Wouldn''t it be a > relevant feature to "inherit" the web server listened port unless another > port is specified? I don''t know how web-server specific that might be, but > it''d be cool to have such a feature. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/PLIpB2r68G4J. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.