Ruby on rails 使用AWS Elastic Beanstalk和资产的Rails 6部署

Ruby on rails 使用AWS Elastic Beanstalk和资产的Rails 6部署,ruby-on-rails,amazon-elastic-beanstalk,Ruby On Rails,Amazon Elastic Beanstalk,我正在将rails 6.x应用程序部署到AWS elastic beanstalk,但无法获取要编译的资产 我继续看到以下错误: ActionView::Template::Error (Webpacker can't find application in /var/app/current/public/packs/manifest.json. Possible causes: 1. You want to set webpacker.yml value of compile to true

我正在将rails 6.x应用程序部署到AWS elastic beanstalk,但无法获取要编译的资产

我继续看到以下错误:

ActionView::Template::Error (Webpacker can't find application in /var/app/current/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
):
在my.ebextensions目录内rails设置配置的容器_命令中,我有以下内容:

container_commands:
07_yarn_install:
command: "yarn install --check-files --force --production"
08_install_weback:
command: "sudo npm install --save-dev webpack"
09_install_babel:
command: "sudo npm install --save-dev babel-loader"
10_webpack:
command: "bundle exec rails webpacker:install"
11_asset_precompile:
command: "RAILS_ENV=production bundle exec rake assets:precompile"