AWS Elastic Beanstalk and Composer

后端 未结 4 1411
既然无缘
既然无缘 2020-12-16 02:22

I have an application with Composer dependencies which I want to deploy to an Elastic Beanstalk container. However my composer.json file is not in the project root folder.

4条回答
  •  一个人的身影
    2020-12-16 03:10

    Composer is already installed default in Beanstalk's PHP AMI.

    Also consider that container_commands are ran through '/var/app/ondeck' and not on current. Try something like this:

    container_commands:
      01-install-packages:
        command: "composer.phar install -d /var/app/ondeck/www"
    

提交回复
热议问题