If you find it that when you deploy your sails app and no assets are being loaded. It’s because grunt is not being run when running sails lift.
Here is what I found was causing the problem. Sails looks for this file .sailsrc when you run the app, it will override settings. In this case when I started the app grunt was not run.
1 2 3 4 5 6 7 8 9 |
{ "generators": { "modules": {} }, "hooks": { "session": false, "grunt": : false } } |
After removing the grunt property the .sailsrc file looked like below.
1 2 3 4 5 6 7 8 |
{ "generators": { "modules": {} }, "hooks": { "session": false } } |