Set asset host port in a way similar to what application does

34 views
Skip to first unread message

ChuckE

unread,
Jan 21, 2013, 3:10:02 PM1/21/13
to rubyonra...@googlegroups.com

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.

Николай Шебанов

unread,
Jan 22, 2013, 9:24:22 AM1/22/13
to rubyonra...@googlegroups.com
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 написал:
Reply all
Reply to author
Forward
0 new messages