Skip to content

Conversation

@stefnw
Copy link

@stefnw stefnw commented May 29, 2015

Hi,
often you dont have ssh permissions to the live server. if you want to use the grunt-wordpress-deploy functions (especially the url-rewriting) its necessary to build a local instance of your wordpress installation. So i added the functionality to dump the local instance to another local folder with the given url-rewriting function.

Usage:

grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    wordpressdeploy: {
        options: {
            backup_dir: "backups/",
            rsync_args: ['--verbose', '--progress', '-rlpt', '--compress', '--omit-dir-times'],
            exclusions: ['Gruntfile.js', '.git/', 'tmp/*']
        },
        local: {
            "title": "local",
            "database": grunt.option('database'),
            "user": grunt.option('user'),
            "pass": grunt.option('pass'),
            "host": grunt.option('host'),
            "url": grunt.option('local_url'),
            "path": grunt.option('local_path')
        },
        dump: {
            "title": "dump",
            "url": grunt.option('livecopy_url'),
            "path": grunt.option('livecopy_path'),
        }
    }
});

@stefnw
Copy link
Author

stefnw commented May 29, 2015

The SQL Dump is saved within the folder of the dumped wordpress instance and is named "db_dump.sql"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant