Sails.isProduction()

Determine whether a Sails application is running in the production environment.

Usage

Hover over inputs/exits for more info.

var Sails = require('machinepack-sails');


// Determine whether a Sails application is running in the production environment.

Sails.isProduction({

}).execSync();

Inputs

Exits

error

An unexpected error occurred.

success

OK.

true