Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Flushed out the old fabfile and started anew.

  • Loading branch information...
commit 16086600de4e6ed4054bca215bc0ece1a7edd0e0 1 parent e2114e9
@jacobian jacobian authored
Showing with 8 additions and 11 deletions.
  1. +8 −11 fabfile.py
View
19 fabfile.py
@@ -1,12 +1,9 @@
-config.fab_hosts = ['djangoproject.com']
+from fabric.api import *
-def deploy():
- sudo("cd /home/djangoproject.com && svn up")
- reload()
-
-def reload():
- sudo("invoke-rc.d apache2 reload")
-
-def flush_cache():
- sudo("invoke-rc.d memcached restart")
-
+env.hosts = ['ve.djangoproject.com']
+
+def copy_db():
+ """
+ Copy the production DB locally for testing.
+ """
+ local('ssh %s pg_dump -U djangoproject -c djangoproject | psql djangoproject' % env.hosts[0])
Please sign in to comment.
Something went wrong with that request. Please try again.