FOGProject/fog-too

View on GitHub
app.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * app.js
 *
 * Use `app.js` to run your app without `./fog run`.
 * To start the server, run: `node app.js`.
 *
 * This is handy in situations where the sails CLI is not relevant or useful.
 *
 * For example:
 *   => `node app.js`
 *   => `forever start app.js`
 *   => `node debug app.js`
 *   => `modulus deploy`
 *   => `heroku scale`
 *
 *
 * The same command-line arguments are supported, e.g.:
 * `node app.js --silent --port=80 --prod`
 */


// Ensure we're in the project directory, so cwd-relative paths work as expected
// no matter where we actually lift from.
// > Note: This is not required in order to lift, but it is a convenient default.
process.chdir(__dirname);

var sails = require('sails');
var config = require('./tools/lib/config');

var cfg = config.getMergedSettings();
sails.lift(cfg);