node.js - Sails.js: Running grunt watch task in production -


I want to run the exact same hour clock work in the production mode running in development mode. I thought it would be as easy as adding "clock work" to "prod.js" function in tasks / register / prod.js , but doing so is hanging on the loose lift

How can I run clock work in production?

How do I run the clock work in production?

I recently found that PAL (v.0.11.0) prevents harsh execution in production mode before startup. To fix this problem, you need to change some lines in /node_modules/sails/lib/hooks/grunt/index.js

, in particular, comment on lines:

  / After the fire is finished, the winnowing is done in the production / (for example). Seal Configuration === 'Production') {cb_afterTaskStarted (); } * /  

Add comment and add:

  // Go ahead and get out of here, because Grunt can backup / * if (Pal Config.environment! == 'Production') {cb_afterTaskStarted (); } * / Cb_afterTaskStarted ();  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -