Skip to content

Rounded/heroku-deploy-tarball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-deploy-tarball npm version

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published