diff -r a92b8dc8de4d -r ad3dd662b64f sbin/sync/config.py.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbin/sync/config.py.tmpl Thu Jun 20 11:10:09 2013 +0200 @@ -0,0 +1,57 @@ +from fabric.api import env +from random import choice + +env.hosts = ['iri@ns227785.ovh.net'] + +env.web_group = 'www-data' +env.folders = ['static/media'] + +env.repos = { + 'web' : {'repo':"/iridata/users/ymh/projects/festivalaix", 'src_root': 'src', 'module':''}, + 'metadatacomposer': {'repo':"/iridata/users/ymh/projects/metadatacomposer", 'src_root': 'src', 'module':''}, + 'ldt': {'repo':"/iridata/users/ymh/projects/platform", 'src_root': 'src/ldt', 'module':''}, +} +env.base_export_path = "~/tmp" +env.export_prefix = "festivalaix" + +env.remote_path = { + 'web':"/home/web/festivalaix/", + 'src':"/home/ldt/festivalaix/src", + 'virtualenv':"/home/ldt/virtualenv/festivalaix", + 'build_export':"/home/iri/tmp/build", + 'venv_export':"/home/iri/tmp/venv", +} + +env.platform_web_module = "aixweb" +env.remote_baseline_venv = "/home/ldt/virtualenv/baseline" + +env.rsync_filters = { + 'src' : [ + "P .htpasswd", + "P .htaccess", + "P aixweb/config.py", + ], + 'venv': [ + "+ core", + ] +} +env.web_relaunch_cmd = "supervisorctl restart aixweb" + + +env.config = { + 'web': { + 'base_url': "/ldt/", + 'web_url': 'http://176.31.235.78', + 'db_engine':'postgresql_psycopg2', + 'db_name':'aixweb', + 'db_user': 'iri', + 'db_password': '', + 'db_host': '127.0.0.1', + 'db_port': 5432, + 'haystack_url' : 'http://localhost:9200', + 'haystack_index' : 'aixweb', + 'log_file' : '/var/log/ldt/aixweb.log', + 'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), + }, +} +