sbin/sync/config.py.tmpl
changeset 1 5778de052a1b
parent 0 87104b7cb3d6
child 6 740d11ae9e28
--- a/sbin/sync/config.py.tmpl	Wed Nov 28 10:05:53 2012 +0100
+++ b/sbin/sync/config.py.tmpl	Thu Nov 29 15:57:49 2012 +0100
@@ -5,31 +5,43 @@
 env.web_group = 'www-data'
 env.folders = ['log', 'static/media']
 
+env.repos = {'ldt' : "/Users/ymh/dev/workspace/platform", 'web' :  "/Users/ymh/dev/workspace/platform_web" }
 env.base_export_path = "~/tmp"
 env.export_prefix = "platform"
-env.remote_web_path = "/iridata/www/ldt/"
+
+env.remote_path = {
+    'web':"/iridata/www/ldt/",
+    'src':"/Users/ymh/dev/tmp/testfab/src",
+    'virtualenv':"/iridata/virtualenv/ldt",
+    'ldt_base':"/tmp",
+    'venv_export':"/iridata/users/iri/tmp",
+}
+
 env.platform_web_module = "ldtplatform"
-env.remote_ldt_base_path = "/tmp"
-env.remote_virtualenv_path = "/iridata/virtualenv/ldt"
-env.remote_venv_export_path = "/iridata/users/iri/tmp" 
 env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7"
-env.web_rsync_filters = [
-    "+ core",
-    "P .htpasswd",
-    "P .htaccess",
-    "P ldtplatform/.htaccess",
-    "P ldtplatform/config.py",
-    "P ldtplatform/modwsgi.wsgi",
-    "P robots.txt",
-    "P env/***",
-    "P log/***",
-    "P index/***",
-    "P static/media/***",
-    "P crossdomain.xml",
-]
-env.venv_rsync_filters = [
-    "+ core",
-]
+
+env.rsync_filters = {
+    'src' : [
+        "P .htpasswd",
+        "P .htaccess",
+        "P ldtplatform/config.py",
+        "P ldtplatform/modwsgi.wsgi",
+    ],
+    'web': [
+        "+ core",
+        "P .htpasswd",
+        "P .htaccess",
+        "P robots.txt",
+        "P env/***",
+        "P log/***",
+        "P index/***",
+        "P static/media/***",
+        "P crossdomain.xml",
+    ],
+    'venv': [
+        "+ core",
+    ]
+}
 env.web_relaunch_cmd = "supervisorctl restart platform"
 
 env.base_url = "/"