This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.bootstrap = function(cb) { | |
sails.after('hook:grunt:error', function(error) { | |
sails.log.error('Grunt error! Lowering sails app...'); | |
sails.lower(function() { | |
sails.log.error("Sails process stopped"); | |
process.exit(1); | |
}); | |
}); | |
// It's very important to trigger this callback method when you are finished | |
// with the bootstrap! (otherwise your server will never lift, since it's waiting on the bootstrap) |