生产中的Rails 6使用http://localhost:3000/xxxxxx生成错误的资产路径url
当我用服务器IP替换http://localhost:3000时,资源加载正常,所以这只是rails的url生成错误。
系统运行在数字海洋上,Passanger运行在Nginx上。
发布于 2019-09-14 15:01:44
尝试向/config/environments/production.rb添加config.action_controller.asset_host = "assets.example.com"
https://stackoverflow.com/questions/57933192
复制相似问题