Reputation: 14245
I have an GAE app, and I deploy it on 2 different domains, and they use separate datastores.
However, right now it is done by having two identical folders with different app.yaml configurations.
If I make changes I need to copy all files again. Is there an elegant solution for that, like having two app.yaml files in the same folder?
Upvotes: 2
Views: 82
Reputation: 14187
Assuming you are avoiding Nick's suggestion for some particular reason, the next best thing would be to include the copying process in your build system. 1 When you build your deploy target, maven/make/ant/"your favorite build tool" should check out copies of your latest revision from your source control system into separate directories, then copy in or rename the appropriate yaml files. 2
Upvotes: 1
Reputation: 4195
Appcfg.py has a --application command line option that is supposed to override the value in your app.yaml. Using that you could deploy the same directory to two different apps.
Upvotes: 3
Reputation: 101139
Use a single application, with namespaces to separate data between domains.
Upvotes: 5