Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add hostname parameter

  • Loading branch information...
commit 9ad0c6176da2d0a9b4df2a16c4b18b7bf0a19ec8 1 parent c3ea015
@tilsammans authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  recipes/deploy.rb
View
2  recipes/deploy.rb
@@ -8,7 +8,7 @@
run "mysqldump --opt --quick --extended-insert --skip-lock-tables -u #{db_remote['username']} --password='#{db_remote['password']}' -h #{db_remote['host']} #{db_remote['database']} | gzip > #{dumpfile}"
system "rsync -vP #{user}@#{deploy_host}:#{dumpfile} tmp/#{db_local["database"]}.sql.gz"
- system "gunzip < tmp/#{db_local["database"]}.sql.gz | mysql -u #{db_local['username']} --password='#{db_local['password']}' #{db_local['database']}"
+ system "gunzip < tmp/#{db_local["database"]}.sql.gz | mysql -u #{db_local['username']} --password='#{db_local['password']}' --host='#{db_local['host']}' #{db_local['database']}"
end
desc 'Fetch the assets from the production server to the development environment'
Please sign in to comment.
Something went wrong with that request. Please try again.