heroku-deploy-tarball
v1.0.0
Published
A tiny script for automating the deployment of a tarball to heroku.
Downloads
3
Readme
heroku-deploy-tarball
A tiny script for automating the deployment of a tarball to heroku.
Installation
npm install heroku-deploy-tarball
Usage
Example: Single Target
deploy.js
var deploy = require('heroku-deploy-tarball');
var config = {
app: 'my-heroku-app',
tarball: 'path/to/build.tar.gz'
}
deploy(config);
shell
node deploy
Example: Multiple Targets
deploy.js
var deploy = require('heroku-deploy-tarball');
var requestedTarget = process.argv[2];
if (!requestedTarget) {
console.log('You must specify a deploy target');
return;
}
var targets = {
staging: {
app: 'my-heroku-staging-app',
tarball: 'build.tar.gz'
},
production: {
app: 'my-heroku-production-app',
tarball: 'build.tar.gz'
}
};
deploy(targets[requestedTarget]);
shell
node deploy staging