Deis.scaleProcess()

Scales an application's processes by type.

Usage

Hover over inputs/exits for more info.

var Deis = require('machinepack-deis');


// Scales an application's processes by type.

Deis.scaleProcess({

token: '',

controller: 'http://deis.mydeisapp.com',

app: 'myawesomeapp',

process: 'web',

number: 1,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The token provided was invalid

notAuthenticated: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

token required

An access token for use with a Deis install.

''
controller required

The controller location of your Deis install.

'http://deis.mydeisapp.com'
app required

The uniquely identifiable name for the application.

'myawesomeapp'
process required

The name of the process to scale.

'web'
number required

The number of containers to scale to.

1

Exits

error

An unexpected error occurred.

notAuthenticated

The token provided was invalid

success

OK.