Edit Page

tasks/register/

This folder contains the Grunt tasks that Sails runs by default.

For more information, see Assets > Task Automation > Task Triggers.

To run a custom task list, create a file in this directory and set sails.config.environment to match this file name. For example, if the Sails environment config is set to "qa", then when you lift, instead of tasks/register/default.js or tasks/register/prod.js, Sails will instead run tasks/register/qa.js. (If it does not exist, then default.js will be run instead.)

Want to see for yourself?

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

Anatomy of a Sails App