sbin/sync/config.py.tmpl
changeset 350 4f2fe8731353
child 353 91c44b3fd11f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/config.py.tmpl	Mon Nov 10 11:46:27 2014 +0100
@@ -0,0 +1,65 @@
+from fabric.api import env
+from random import choice
+
+env.hosts = ['iri@web.iri.centrepompidou.fr']
+
+env.web_group = 'www-data'
+env.folders = ['log', 'static/media']
+
+env.repos = {
+    'ldt': {'repo':"/Users/ymh/dev/workspace/platform", 'src_root':'src/ldt'},
+    'renkanmanager': {'repo':"/Users/ymh/dev/workspace/renkan", 'src_root':'server/python/django'},
+}
+env.base_export_path = "~/tmp"
+env.export_prefix = "hdalab"
+
+env.remote_path = {
+    'web':"/iridata/www/iri-research/lab/hdalab/",
+    'src':"/Users/ymh/dev/tmp/testfab/src",
+    'virtualenv':"/iridata/virtualenv/hdalab2",
+    'build_export':"/iridata/users/iri/tmp/build",
+    'venv_export':"/iridata/users/iri/tmp/venv",
+}
+
+env.platform_web_module = "hdalab"
+env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7"
+
+env.rsync_filters = {
+    'src' : [
+        "P .htpasswd",
+        "P .htaccess",
+        "P hdalab/config.py",
+    ],
+    '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 hdalab2"
+
+
+env.config = {
+    'web': {
+        'base_url': "/hdalab/",
+        'web_url': 'http://labs.iri-research.org',
+        'db_engine':'postgresql_psycopg2',
+        'db_name':'hdalab',
+        'db_user': 'iriuser',
+        'db_password': '',
+        'db_host': 'sql.iri.centrepompidou.fr',
+        'db_port': 5432,
+        'log_file' : env.remote_path['web'] + '/log/log.txt',
+        'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]),         
+    },
+}
+