Amazon ElasticBeanstalk配置无法正常工作

时间:2014-10-17 11:29:29

标签: php amazon-web-services amazon-ec2 elastic-beanstalk

我能够在弹性beanstalk中使用git成功部署php应用程序,但配置文件不起作用。我在我的根应用程序文件夹上创建了一个.ebextensions文件夹,并使用以下命令创建了一个配置文件:

container_commands:
  00_make_assets:
    command: "sudo mkdir /var/app/current/assets"

我在仪表板上收到以下错误消息

 Command failed on instance. Return code: 1 Output: [CMD-AppDeploy/AppDeployStage0/EbExtensionPostBuild] command failed with error code 1: Error occurred during build: Command 00_make_assets failed.

我想要做的就是创建一个文件夹并给予777权限。

日志文件(/var/log/eb-commandprocessor.log)中的输出显示:

[2014-10-17T11:01:43.487Z] ERROR [2341]  : Command CMD-AppDeploy failed!
[2014-10-17T11:01:43.488Z] INFO  [2341]  : Command processor returning results: 
{"status":"FAILURE","api_version":"1.0","truncated":"false","results":[{"status":"FAILURE","msg":"[CMD-AppDeploy/AppDeployStage0/EbExtensionPostBuild] command failed with error code 1: Error occurred during build: Command 00_make_assets failed","returncode":1,"events":[]}]}

有没有人遇到过这种情况?如何解决这个问题?任何帮助将不胜感激。

0 个答案:

没有答案