DaftMonk/generator-angular-fullstack — pull request #613 by albulescu (2014-10-01 11:16:58+00:00)
Title: Grunt task for deploying application

I think from this fullstack generator missing a deploy part. So i created a simple deploying task that increase the package version using patch, minor or major release and upload the dist contents to the server after build task

Available grunt tasks:
- ```grunt deploy:patch``` ( 1.0.0 to 1.0.1 )
- ```grunt deploy:minor``` ( 1.0.0 to 1.1.0 )
- ```grunt deploy:major``` ( 1.0.0 to 2.0.0 )
- ```grunt deploy:noupdate``` ( Will not increment version )

Executing each of this commands will trigger following commands: **newer:jshint**, **test**, **build** and [**up:live**][grunt-up]. On the server, in the deploy path will have the following structure ( having /var/www as deploy path ):

- /var/www/releases/vX.X.X
- /var/www/releases/current ( pointing to current release from releases directory )

After creating symbolic link to the new release the [forever][forever] will be executed to start/restart the application ( server/app.js )

I use this for my application and maybe this will be usefully for others.

What do you think about this?

[forever]:https://github.com/nodejitsu/forever
[grunt-up]:https://www.npmjs.org/package/grunt-up