Commit e7a3230f authored by Enrique García's avatar Enrique García

added script for removing extra anonymous role from vlad:staging:clone_db

parent 85dec5a0
......@@ -14,5 +14,11 @@ namespace :postgresql do
system("sudo kill -9 #{procpid}")
end
end
desc 'removes extra anonymous role from staging'
task :remove_anonymous_role => :environment do
Role.delete_all (:name => "anonymous", :permissions => nil)
end
end
......@@ -45,6 +45,7 @@ namespace :vlad do
remote_task :clone_db => ['vlad:staging'] do
info "Clonning DB from production to staging"
run "pg_dump -c -h #{@production_server} -U ohwr ohwr | psql -h localhost -U ohwr ohwr"
remote_rake 'postgresql:remove_anonymous_role'
end
desc "Makes a clone of the production files directory on staging"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment