Deis.createApp()

Creates a new application.

Usage

Hover over inputs/exits for more info.

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


// Creates a new application.

Deis.createApp({

token: '',

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

id: 'myawesomeapp',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// The token provided were invalid

notAuthenticated: function () {

 

},

// OK.

success: function (result) {

 

},

});

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'
id

A name for the application

'myawesomeapp'

Exits

error

An unexpected error occurred.

notAuthenticated

The token provided were invalid

success

OK.

{ uuid: 'd6e93995-1bee-49b1-a80a-d3eeef95ffdc',
  id: 'ironic-neckwear',
  url: 'ironic-neckwear.mydeiaapp.com',
  created: '2015-03-05T17:22:59UTC',
  updated: '2015-03-05T17:22:59UTC' }