Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
e7a3230f
Commit
e7a3230f
authored
Oct 27, 2011
by
Enrique García
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added script for removing extra anonymous role from vlad:staging:clone_db
parent
85dec5a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
postgresql.rake
lib/tasks/postgresql.rake
+6
-0
vlad.rake
lib/tasks/vlad.rake
+1
-0
No files found.
lib/tasks/postgresql.rake
View file @
e7a3230f
...
...
@@ -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
lib/tasks/vlad.rake
View file @
e7a3230f
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment