我使用Elastic Beanstalk部署Rails应用程序。我也尝试使用下面的脚本设置Sidekiq。但是我一直收到错误/opt/elasticbeanstalk/containerfiles/envvars: No such file or directory
。我通过SSH连接到EC2实例,目录确实存在。我不确定我在这里做错了什么
我得到的错误:
ERROR: [Instance: i-03a6fa2e1b96474be] Command failed on instance. Return code: 10 Output: (TRUNCATED)...hooks/appdeploy/post/50_restart_sidekiq: line 3: /opt/elasticbeanstalk/containerfiles/envvars: No such file or directory
/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq: line 7: cd: HOME not set
Could not locate Gemfile or .bundle/ directory.
Hook /opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.