Sails app
This commit is contained in:
16
config/bootstrap.js
vendored
Normal file
16
config/bootstrap.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Bootstrap
|
||||
*
|
||||
* An asynchronous boostrap function that runs before your Sails app gets lifted.
|
||||
* This gives you an opportunity to set up your data model, run jobs, or perform some special logic.
|
||||
*
|
||||
* For more information on bootstrapping your app, check out:
|
||||
* http://sailsjs.org/#documentation
|
||||
*/
|
||||
|
||||
module.exports.bootstrap = function (cb) {
|
||||
|
||||
// It's very important to trigger this callack method when you are finished
|
||||
// with the bootstrap! (otherwise your server will never lift, since it's waiting on the bootstrap)
|
||||
cb();
|
||||
};
|
||||
Reference in New Issue
Block a user