Digitalocean:Rails在生产模式下不会加载资产

问题描述 投票:1回答:0

我在Digitalocean上有问题。 Rails不会在生产模式下加载资产。 这些是我的nginx.error.log中的错误:

2018/05/15 07:36:15 [错误] xxxx#xxxx:* 287 open()“ /home/deploy/my-app/public/assets/application-ebfec4dd0d514096e0a404ee9a54f2924a01ee7755b16d05a38e8bca7c442a34.css”失败(2:无此类文件或目录),客户端:xx.xx.xx.xx(ip),服务器:,请求:“ GET /assets/application-ebfec4dd0d514096e0a404ee9a54f2924a01ee7755b16d05a38e8bca7c442a34.css HTTP / 1.1”,主机:“ httpyourselforderfood.com”,引荐来源网址:“ http: /my-site.com/

2018/05/15 07:36:15 [错误] xxxx#xxxx:* 285 open()“ /home/deploy/my-app/public/assets/application-86cc2a7aed5b41249ff7d5436f7a08df58d9f71a414af5794cb82f6c35a00567.js”失败(2:无此类文件或目录),客户端:xx.xx.xx.xx(ip),服务器:,请求:“ GET /assets/application-86cc2a7aed5b41249ff7d5436f7a08df58d9f71a414af5794cb82f6c35a00567.js HTTP / 1.1”,主机:“ httpyourselforderfood.com”,引荐网址:“ : /my-site.com/

我检查了/home/deploy/my-app/public/assets/是否存在。

如果文件存在,为什么会出现这些错误?

javascript css ruby-on-rails assets digital-ocean
© www.soinside.com 2019 - 2024. All rights reserved.