I have an existing app working on Nitrous.io, but when I preview it, the html loads, but not the assets, i.e. the images, javascripts etc do not load.
问问题
73 次
1 回答
2
在 Nitrous.io 支持团队的帮助下,我找到了答案。
在您的config/environments/development.rb
文件中,您需要设置配置变量asset_host,它告诉应用程序在哪里加载资产。例如,如果您的 nitrious.io 预览页面的 ip 地址是http://test-rails-xyz.apse2.actionbox.io/
:
config.asset_host = ' http://test-rails-xyz.apse2.actionbox.io/ '
于 2013-12-05T20:25:40.193 回答