LocalSailsApps.writeAppConfig()

Write the config/treeline.js file

Usage

Hover over inputs/exits for more info.

var LocalSailsApps = require('machinepack-local-sails-apps');


// Write the config/treeline.js file

LocalSailsApps.writeAppConfig({

destination: '/Users/mikermcneil/foo/',

configVars: {},

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

destination required

The path to the app (if path is not absolute, will be resolved from the current working directory)

'/Users/mikermcneil/foo/'
configVars required

The config vars to write.

{}

Exits

error

An unexpected error occurred.

success

OK.