Amazon Elastic Beanstalk + Git Submodules
I'm using Amazon's Elastic Beanstalk to deploy my app via Git, and I've got submodules within my Git. Of course, when I look at the directories where the data for the submodules should be, nothing is there because the submodules have not been initialized.
Apparently Elastic Beanstalk doesn't support submodules. Is this correct? If so, how can I convince Git to let me have the features of a submodule but still upload all the code of the submodule when I push the main repo?
I'm using node.js so I'm thinking an install script might be the best option
Solution 1:
If you don't have too many submodules (and you're not changing or updating them often) you could just replace them with the static files instead.
Many people in the PHP community are starting to move away from managing dependencies with Git submodules to using Composer http://getcomposer.org/. This might make part of your deployment flow simpler.
There is also a solution outlined here https://forums.aws.amazon.com/message.jspa?messageID=474880 The last comment (Aug 1, 2013 1:37 PM by oquismail) shows you how to modify Elastic beanstalk configuration files
You could consider managing deployments through https://github.com/briandilley/ebs-deploy (Python based command line tools for managing Amazon Elastic Beanstalk applications.)