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
    Commented Nov 26, 2015 at 18:00

1 Answer 1


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



and deploy specific sub folders to specific targets with deploybot

"should" do it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .