sbin/sync/config.py.tmpl
changeset 1 4a14963334f4
child 4 ae066d797a66
equal deleted inserted replaced
0:4095911a7830 1:4a14963334f4
       
     1 from fabric.api import env
       
     2 from random import choice
       
     3 
       
     4 env.hosts = ['iri@web.iri.centrepompidou.fr']
       
     5 
       
     6 env.web_group = 'www-data'
       
     7 env.folders = ['../run/log', 'static/media']
       
     8 
       
     9 env.repos = {'web' : {'repo':"/Users/ymh/dev/workspace/jocondelab", 'src_root':'src'}}
       
    10 env.base_export_path = "~/tmp"
       
    11 env.export_prefix = "jocondelab"
       
    12 
       
    13 env.remote_path = {
       
    14     'web':"/iridata/www/ldt/",
       
    15     'src':"/Users/ymh/dev/tmp/testfab/src",
       
    16     'virtualenv':"/iridata/virtualenv/ldt",
       
    17     'build_export':"/iridata/users/iri/tmp/build",
       
    18     'venv_export':"/iridata/users/iri/tmp/venv",
       
    19 }
       
    20 
       
    21 env.platform_web_module = "jocondelab"
       
    22 env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7"
       
    23 
       
    24 env.rsync_filters = {
       
    25     'src' : [
       
    26         "P .htpasswd",
       
    27         "P .htaccess",
       
    28         "P jocondelab/config.py",
       
    29     ],
       
    30     'web': [
       
    31         "+ core",
       
    32         "P .htpasswd",
       
    33         "P .htaccess",
       
    34         "P robots.txt",
       
    35         "P env/***",
       
    36         "P log/***",
       
    37         "P index/***",
       
    38         "P static/media/***",
       
    39         "P crossdomain.xml",
       
    40     ],
       
    41     'venv': [
       
    42         "+ core",
       
    43     ]
       
    44 }
       
    45 env.web_relaunch_cmd = "supervisorctl restart jocondelab"
       
    46 
       
    47 
       
    48 env.config = {
       
    49     'web': {
       
    50         'base_url': "/",
       
    51         'web_url': 'http://labs.iri-resesarch.org/jocondelab',
       
    52         'db_engine':'postgresql_psycopg2',
       
    53         'db_name':'jocondelab',
       
    54         'db_user': 'iriuser',
       
    55         'db_password': '',
       
    56         'db_host': 'sql.iri.centrepompidou.fr',
       
    57         'db_port': 5432,
       
    58         'log_file' : env.remote_path['web'] + '/log/log.txt',
       
    59         'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), 
       
    60     },
       
    61 }
       
    62