4 ms·
The tutorial recommends starting your server using `node server`. With MEAN a Grunt file is provided. Running the server with `grunt` will make grunt run the s
by weavie 13y ago
The tutorial recommends starting your server using `node server`.
With MEAN a Grunt file is provided. Running the server with `grunt` will make grunt run the server and then watch the directory for changes - restarting the server and refreshing the page as necessary.
Much easier.
- nekopa 13y agoI tried to use grunt as you say with the tutorial, but it didn't work. They say they are using a stripped down version of MEAN, so maybe they took that out? Do you know a good tutorial on adding it back in, as I like the sound of the functionality you're talking about...
- weavie 13y agoYes. They have stripped out the gruntfile. Just copying this from the original project into your solution should work. https://github.com/linnovate/mean/blob/master/gruntfile.js https://github.com/linnovate/mean/blob/master/gruntfile.js Make sure you have grunt installed. http://gruntjs.com/ http://gruntjs.com/
- nekopa 13y agoThanks for that. For anyone else trying to add grunt, you need to copy over the gruntfile.js and add the grunt dependencies to the dev section of package.json in the root directory of the project. Then you might also have to remove and reinstall the grunt nodemon package (grunt threw up instructions on how to do this when I first ran it)