Heroku.addAppSetup()

Add an app setup for an account.

Usage

Hover over inputs/exits for more info.

var Heroku = require('machinepack-heroku');


// Add an app setup for an account.

Heroku.addAppSetup({

apiToken: 'abc12421-1234-abdc-5343-ae4adf123fea4',

sourceUrl: 'https://example.com/source.tgz?token=xyz',

environment: {},

name: 'My awesome app',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

apiToken required

Your Heroku API token

'abc12421-1234-abdc-5343-ae4adf123fea4'
sourceUrl required

URL of gzipped tarball of source code containing app.json manifest file

'https://example.com/source.tgz?token=xyz'
environment

Environment variable overrides to use in setting up the app.

name

Unique name for the app.

'My awesome app'

Exits

error

An unexpected error occurred.

success

OK.