Skip to content

Instantly share code, notes, and snippets.

@yosukehasumi
Last active August 29, 2015 14:15
Show Gist options
  • Save yosukehasumi/34f68a8bc378c148ba1a to your computer and use it in GitHub Desktop.
Save yosukehasumi/34f68a8bc378c148ba1a to your computer and use it in GitHub Desktop.
Gruntfile.js
npm link grunt grunt-deployments
npm install grunt -g
npm install grunt-deployments -g
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-deployments');
grunt.initConfig({
deployments: {
options: {
backups_dir: './backups'
},
local: {
"title": "Local",
"database": "healthyway",
"user": "root",
"pass": "root",
"host": "localhost",
"url": "http://localhost/MediumRare/Healthyway/wordpress"
},
dev: {
"title": "Development",
"database": "healthyway_dev",
"user": "yosuke",
"pass": "PI6MHtqPEnwRk",
"host": "mysql.mediumrareinc.com",
"url": "http://healthyway.mediumraredev.com/",
"ssh_host": "yhasumi5@208.113.149.250"
}
}
});
grunt.registerTask('deploy', ['deployments']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment