netbeans automated deployment with ant and rsync

noobstack

since i have a few chances to correctly remember rsync deployment command and since a wrong command could be a disaster, let’s try to automatically perform it via netbeans-ant integration: http://stackoverflow.com/questions/14545945/how-to-sync-a-php-project-using-rsync-and-netbeans.

cp options:
-R -> nicely manages symbolic links

rsync options:
-a -> stands for “archive” and syncs recursively and preserves symbolic links, special and device files, modification times, group, owner, and permissions.
-n -> dry-run
-P -> nice verbosity
-z -> compress

then i create deploy.ant in ~/eERP/:

activate ant plugin in netbeans.
right click on deploy.ant -> run target… -> dev-to-test-deployment

-> perfect!

View original post

Advertisements