我有点难住了。我的本地 rails 应用程序与 webpacker 4.2 配合得很好并做出反应,但是在部署到生产环境时can't find application in /app/public/packs/manifest.json出现了奇妙的错误。
这是我尝试过的:
4.2我是否错过了构建步骤或生产中会导致这种情况的东西?还需要检查什么?
服务器错误:
2019-12-03T15:18:19.022024+00:00 app[web.1]: I, [2019-12-03T15:18:19.021952 #30] INFO -- : [aa0374eb-bab1-40cc-b40b-6ae3d195e07d] Completed 500 Internal Server Error in 112ms (ActiveRecord: 30.4ms | Allocations: 21296)
2019-12-03T15:18:19.023103+00:00 app[web.1]: F, [2019-12-03T15:18:19.023029 #30] FATAL -- : [aa0374eb-bab1-40cc-b40b-6ae3d195e07d]
2019-12-03T15:18:19.023107+00:00 app[web.1]: [aa0374eb-bab1-40cc-b40b-6ae3d195e07d] ActionView::Template::Error (Webpacker can't find application in /app/public/packs/manifest.json. Possible causes:
2019-12-03T15:18:19.023109+00:00 app[web.1]: 1. …Run Code Online (Sandbox Code Playgroud)