2

We're using git and eb to deploy our elastic beanstalk application on aws, but have just added a worker layer. Given that so much of the code is common (models, etc etc), it seems sensible to have a single source base, but you can only have one eb config and the branch based deployment can only have one target.

An alternative is to have multiple source repositories with shared code.

Another is to have the eb config outside of the repo and have multiple instances of the repo.

Personally, I'd prefer one source base.

What is considered the best practice for git and multiple tier?

  • You can specify environment target with CLI arguments. So you could write a quick script that deploys the same code to one or the other environments – Humdinger Nov 26 '15 at 18:00
0

deploybot.com -> add config files on deploy - otherwise just create subfolders:

web/.ebextensions

worker/.ebextensions

and deploy specific sub folders to specific targets with deploybot

"should" do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.