sbin/sync/config.py.tmpl
changeset 1 4a14963334f4
child 4 ae066d797a66
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sbin/sync/config.py.tmpl	Sat Jun 15 10:28:34 2013 +0200
@@ -0,0 +1,62 @@
+from fabric.api import env
+from random import choice
+
+env.hosts = ['iri@web.iri.centrepompidou.fr']
+
+env.web_group = 'www-data'
+env.folders = ['../run/log', 'static/media']
+
+env.repos = {'web' : {'repo':"/Users/ymh/dev/workspace/jocondelab", 'src_root':'src'}}
+env.base_export_path = "~/tmp"
+env.export_prefix = "jocondelab"
+
+env.remote_path = {
+    'web':"/iridata/www/ldt/",
+    'src':"/Users/ymh/dev/tmp/testfab/src",
+    'virtualenv':"/iridata/virtualenv/ldt",
+    'build_export':"/iridata/users/iri/tmp/build",
+    'venv_export':"/iridata/users/iri/tmp/venv",
+}
+
+env.platform_web_module = "jocondelab"
+env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7"
+
+env.rsync_filters = {
+    'src' : [
+        "P .htpasswd",
+        "P .htaccess",
+        "P jocondelab/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 jocondelab"
+
+
+env.config = {
+    'web': {
+        'base_url': "/",
+        'web_url': 'http://labs.iri-resesarch.org/jocondelab',
+        'db_engine':'postgresql_psycopg2',
+        'db_name':'jocondelab',
+        '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)]), 
+    },
+}
+