Description
I imagine there's some closed-source work that would be required to make this happen, but this looked like the best place to document it.
What I want is to be able to jitsu deploy production
where production
maps to a different app. This better reflects the git workflow of many organizations and the next logical step would be for the webhooks to allow me to have one branch continuously deploy to one app and another to continuously deploy to another app. All without constantly having to change and resolve conflicts in package.json.
Consider the following setup: I have master branch (myapp), staging branch (myapp_staging), and feature branches (don't get deployed anywhere). When I merge feature -> staging, it could deploy to myapp_staging, and when I merge staging -> master it could deploy myapp.
Even if you want to manually use this kind of git workflow, right now you need to constantly change the package.json back and forth or remove it with .gitignore altogether, in which case you lose dependency versioning.
So anyway, I propose that jitsu's extensions to package.json be refactored to allow multiple, labeled apps so that we can jitsu deploy <app label>
explicitly.
Here's just a rough example package.json I threw together:
{
"version": "0.0.1-37",
"apps": {
"default": {
"name": "myapp_staging",
"subdomain": "myapp_staging",
"private": true
},
"production": {
"name": "myapp_production",
"subdomain": "myapp"
}
},
"scripts": {
"start": "node app.js"
},
"engines": {
"node": "0.8.x"
},
"dependencies": {
"express": "3.0.3",
"jade": "*",
"less": "*",
"mongoose": "*"
}
}