Skip to content

Commit

Permalink
Add explanation of why custom paths need to be configured in sailsrc,…
Browse files Browse the repository at this point in the history
… programmatically, or using env variables
  • Loading branch information
mikermcneil committed Nov 25, 2015
1 parent 6bd6f80 commit fdf3ffb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/hooks/moduleloader/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## Moduleloader Hook

This hook loads modules from your configured directories in sails.config.paths. It is always loaded first or second.
This hook loads modules from your configured directories in `sails.config.paths`. It is always loaded first or second.

> Note that consequently, in order to customize `sails.config.paths`, you need to inject configuration into the load process using env variables, the .sailsrc file, or by passing in an option to the programmatic call to sails.lift (i.e. in app.js). Otherwise, by the time your user configuration files in config/* have loaded, it is too late (this hook has already run using the default paths).
##### Contributing to this hook
Not a good place to jump in right now. Please tweet @mikermcneil before working on this part!

0 comments on commit fdf3ffb

Please sign in to comment.