How to speed up development? (A lot of time was spent waiting for the sails ...)

Developing in sails is a pain! I have to wait ... and wait ... and wait ... So much time wasted waiting!

  • Every time I update my controller / model / config I have to restart sails.js. Takes 25-35 seconds each time to restart the server.
  • When I update the CSS / JS file I hit refresh in the browser and the changes are not shown! My guess is that in the background the sails should be moving new files from / assets to / .tmp. But I have to wait 5-10 seconds for a simple CSS / JS change to show up! (I already have caching disabled in Google Console).

I don't mind # 1 so much, I understand the need (I messed up all the time with Apache / PHP where the changes showed up instantly).

But # 2 really gets to me. Is there a way to speed up this speed? I cannot develop like that.

i.e. make it serve files from / assets instead of / .tmp during development?

i.e. skip compilation and just serve up LESS / SASS files? etc...

+3
node.js ubuntu sails.js


source to share


No one has answered this question yet

Check out similar questions:

49
AngularJS + sails.js
8
Run sails.js with least privileges in Production
3
Sails.js app doesn't update files from assets after launch
3
How do I create a sails.js skeleton so that I can quickly build new applications with common goals?
2
Assets not found while deploying Sails app for Heroku
2
Can I easily run vue.js webapp in sails.js assets directory?
1
Azure Node File / Folder Permissions
1
Grunt converts symlink to folder in Sails.js
1
How to make a very large request for mongo sails?
0
Latest assets / server views are loaded automatically



All Articles
Loading...
X
Show
Funny
Dev
Pics