Elastic Beanstalk Ruby/Rails need to install git so bundle install works.. but is not

后端 未结 5 1893
一整个雨季
一整个雨季 2020-12-02 13:09

I\'m having an issue deploying our rails app.. I created a hook like the example on the AWS blog howto http://ruby.awsblog.com/post/Tx2AK2MFX0QHRIO/Deploying-Ruby-Applicatio

5条回答
  •  悲哀的现实
    2020-12-02 13:58

    • ok well after lot of research and testing I figure this was related to Amazon having some issues with the passenger env values...
    • I was able to run manually rails s and then it worked fine and all gems loaded.. but with passenger it did not so find that if I run

      bundle pack --all

    • --all so it also packs the git gems..

    • it will then run like a charm..

    • to be able to have this run in the mean time Amazon fixes this issue with bundle I create a hook and force it to run after every install. not the best way but works.

    Note: using the hook I cant seen to run the command on EB updates so I git add the vendor/cache and it uploads it all by default.

提交回复
热议问题