Grunt project is not working

Posted May 14, 2015 2.9k views
Node.jsRubyMEANLinux Commands

I like to run a grunt project in the server. I have purchased a theme for the project. This project is using grunt, angular, html node . I follow their instruction to run it in server.But “grunt bower-install-simple” this command is not working saying can not find module /array/collect .can not build the theme as well, using following command: “grunt build:standardversion”
any idea how can i run this project continuously without any problem.I manage to run it temporary basis using npm start command. But If i close the ssh terminal it will stop. Folder location root-> assignment -> AngularJs-Admin

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Unfortunately without more information, it’s hard to answer the first part of you question. If you are able to provide the Gruntfile and the actual error messages, it would help with finding your solution.

For the second part, you’d need to use some sort of process manager to run you app as a system service. This can be done with via an you init system (e.g. Upstart or systemd). Another popular option is PM2, a process manager for node. This tutorial will walk you through setting up a node application for production using it:

by Yasin Soliman
Use Upstart for modern, full-coverage initialization. This tutorial explains the concepts behind initialization and provides two practical examples of initialization jobs with Upstart.