AWS Elastic Beanstalk using PHP with Private Composer Repositories

后端 未结 3 375
不知归路
不知归路 2021-01-02 17:52

How do I utilize private composer repositories when deploying with Amazon AWS Elastic Beanstalk in a PHP environment? Specifically using GitHub (Q & A style, answer foll

3条回答
  •  清歌不尽
    2021-01-02 18:45

    I struggled with this. I've got repos in AWS CodeCommit and was looking for the path of least resistance to solve it. I tried ~/.composer/auth.json but it appears that composer is run before I could get the file in place etc. etc.

    I went for an approach which includes the vendor directory in my repo (get rid of .git folders within so that it doesn't treate them as submodules) and the whole thing then gets published to Elastic Beanstalk via zip file including that folder.

提交回复
热议问题