Ruby on rails 弹性beanstalk rake资源:预编译错误

Ruby on rails 弹性beanstalk rake资源:预编译错误,ruby-on-rails,amazon-elastic-beanstalk,asset-pipeline,precompile,Ruby On Rails,Amazon Elastic Beanstalk,Asset Pipeline,Precompile,我在elastic beanstalk上部署了一个新的rails webapp,我得到了一个资产预编译 [2020-10-16T23:42:54.285Z] ERROR [26518] : Command CMD-AppDeploy failed! [2020-10-16T23:42:54.285Z] INFO [26518] : Command processor returning results: {"status":"FAILURE",&quo

我在elastic beanstalk上部署了一个新的rails webapp,我得到了一个资产预编译

[2020-10-16T23:42:54.285Z] ERROR [26518] : Command CMD-AppDeploy failed!
[2020-10-16T23:42:54.285Z] INFO  [26518] : Command processor returning results: 
{"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"(TRUNCATED)...2' as your home directory temporarily.\n+ '[' false == true ']'\n+ su -s /bin/bash -c 'bundle exec rake assets:precompile' webapp\n`/home/webapp` is not a directory.\nBundler will use `/tmp/bundler20201016-17488-1cnmx617488' as your home directory temporarily. \nHook /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI","returncode":1,"events":[]}],"truncated":"true"}
[2020-10-16T23:44:01.593Z] DEBUG [20114] : Reading config file: /etc/elasticbeanstalk/.aws-eb-stack.properties
[2020-10-16T23:44:01.594Z] DEBUG [20114] : Checking if the command processor should execute...
[2020-10-16T23:44:01.599Z] DEBUG [20114] : Checking whether the command is applicable to instance (i-05a6489f233fdd2f7)..
[2020-10-16T23:44:01.599Z] INFO  [20114] : Command is applicable to this instance (i-05a6489f233fdd2f7)..
[2020-10-16T23:44:01.599Z] DEBUG [20114] : Checking if the received command stage is valid..
我在网上找到了一些解决方案,但没有一个有效, 这是我最后试过的一个。 我添加了一个.ebextensions文件夹,然后添加了一个compile.config文件

container_commands: 
    01_precompile:
        command: bundle exec rake assets:precompile
关于如何解决这个问题的任何解释,这是一个新的rails应用程序rails 6,带有webpacker for js资产,没有添加模型或控制器。
它在本地工作时没有错误。

您能否查看
/var/log/eb activity.log
中是否有更多错误信息?您可以通过Elastic Beanstalk控制台请求日志。