Permalink
Browse files

Flushed out the old fabfile and started anew.

  • Loading branch information...
1 parent e2114e9 commit 16086600de4e6ed4054bca215bc0ece1a7edd0e0 @jacobian jacobian committed Oct 11, 2010
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])

0 comments on commit 1608660

Please sign in to comment.