Heroku.addDyno()

Add a dyno to an existing app.

Usage

Hover over inputs/exits for more info.

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


// Add a dyno to an existing app.

Heroku.addDyno({

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

app: 'app-123',

command: 'bash',

environment: {},

size: '1X',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

apiToken required

Your Heroku API token

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

Unique ID or name of your Heroku app.

'app-123'
command

Command used to start this process

'bash'
environment

Environment variable overrides to use in setting up the app.

size

Number of dynos to spin up.

'1X'

Exits

error

An unexpected error occurred.

success

OK.