Edit Page

config/bootstrap.js

This is a server-side JavaScript file that is executed by Sails just before your app is lifted.

This gives you an opportunity to set up your data model, run jobs, or perform some special logic.

Usage

#

See sails.config.bootstrap for more info.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App