module.exports = function(grunt) { "use strict"; grunt.initConfig({ wordpressdeploy: { options: { backup_dir: "backups/", rsync_args: [ '--verbose', '--progress', '-rlpt', '--compress', '--omit-dir-times', '--delete' ], exclusions: [ 'Gruntfile.js', '.git/', 'tmp/*', 'backups/', 'wp-config.php', 'composer.json', 'composer.lock', 'README.md', '.gitignore', 'package.json', 'node_modules' ] }, local: { "title": "local", "database": "yourdatabase", "user": "root", "pass": "yourpassword", "host": "localhost", "url": "http://localhost/yourwordpress/", "path": "~/sites/yourwordpress/" }, production: { "title": "production", "database": "yourdatabase", "user": "root", "pass": "yourpassword", "host": "localhost", "url": "http://yoursite.com/yourwordpress", "path": "/var/www/yoursite.com/public_html/yourwordpress/", "ssh_host": "root@whatever.ip" } }, }); // Load tasks grunt.loadNpmTasks('grunt-wordpress-deploy'); // Register tasks grunt.registerTask('default', [ 'wordpressdeploy' ]); };