sumodev_deploy 0.2.8 → 0.2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sumodev_deploy.rb +2 -2
- data/sumodev_deploy.gemspec +1 -1
- metadata +1 -1
data/lib/sumodev_deploy.rb
CHANGED
@@ -98,14 +98,14 @@ configuration.load do
|
|
98
98
|
|
99
99
|
desc "Imports the database from your local server to the remote one"
|
100
100
|
task :put, :roles => :db, :only => {:primary => true} do
|
101
|
-
run "mysqldump --set-charset #{
|
101
|
+
run "mysqldump --set-charset #{db_name} > #{current_path}/#{release_name}.sql" rescue nil
|
102
102
|
|
103
103
|
dump = StringIO.new(run_locally "mysqldump --set-charset #{db_name}")
|
104
104
|
dump_path = "#{shared_path}/db_upload.tmp.sql"
|
105
105
|
upload dump, dump_path
|
106
106
|
|
107
107
|
run %{
|
108
|
-
mysql #{remote_db_options} #{
|
108
|
+
mysql #{remote_db_options} #{remote_db_name} < #{dump_path} &&
|
109
109
|
rm #{dump_path}
|
110
110
|
}
|
111
111
|
end
|
data/sumodev_deploy.gemspec
CHANGED