ruby on rails - Set url to be used for assets -
i have rails app
salmonfishing.com which has database. have app
salmonfishing-test.com how can alias root url when user goes
http://salmonfishing-test.com the assets , data
http://salmonfishing.com database will used.
my database.yml points 'salmonfishing' database, generated url image is
http://salmonfishing-test/bigfish.png that expected, internally aliased to
http://salmonfishing.com/bigfish.png ...basically assets , data served 'salmonfishing' database, , saved it. ran across various ways of setting sub-paths, not root assets , data.
cheers,
jet
if problem wrong domain name in asset urls, can change in environment config file: config/environments/[whatever].rb:
config.action_controller.asset_host = "http://salmonfishing.com" this line present in production.rb, it's commented out.
Comments
Post a Comment