Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tasks/deployments.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ module.exports = function(grunt) {
}
});


// 3) Test whether MYSQL DB is local or whether requires remote access via SSH
if (typeof config.ssh_host === "undefined") { // it's a local connection
grunt.log.writeln("Creating DUMP of local database");
// Run mysqldump without user, pass and host as this info should be saved within ~/.my.cnf
cmd = tpl_mysqldump;

} else { // it's a remote connection
Expand Down Expand Up @@ -249,9 +249,9 @@ module.exports = function(grunt) {

search_replace: "sed -i '' 's#<%= search %>#<%= replace %>#g' <%= path %>",

mysqldump: "mysqldump -h <%= host %> -u<%= user %> -p<%= pass %> <%= database %>",
mysqldump: "mysqldump --databases <%= database %>",

mysql: "mysql -h <%= host %> -u <%= user %> -p<%= pass %> <%= database %>",
mysql: "mysql -h <%= host %> -u <%= user %> -p<%= pass %>",

ssh: "ssh <%= host %>",
};
Expand Down