diff -r 157447feaaef -r 381a03bcd1a7 sbin/sync/config.py.tmpl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbin/sync/config.py.tmpl Thu Mar 27 13:27:06 2014 +0100 @@ -0,0 +1,57 @@ +from fabric.api import env +from random import choice + +env.hosts = ['iri@spectacleenlignes.fr'] + +env.web_group = 'www-data' +env.folders = ['/var/log/spel', 'static/media'] + +env.repos = {'web' : {'repo':"/Users/ymh/dev/workspace/spel", 'src_root': 'src', 'module':''}} +env.base_export_path = "~/tmp" +env.export_prefix = "spel" + +env.remote_path = { + 'web':"/srv/www/spel/web", + 'src':"/srv/www/spel/src", + 'virtualenv':"/src/virtualenv/spel", + 'build_export':"/home/iri/tmp/build", + 'venv_export':"/home/iri/tmp/venv", +} + +env.platform_web_module = "spel" +env.remote_baseline_venv = "" + +env.rsync_filters = { + 'src' : [ + "P spel/config.py", + ], + 'web' : [ + "P robots.txt", + "P statc/media", + ], + 'venv': [ + "+ core", + ] +} +env.web_relaunch_cmd = "supervisorctl restart spel" + + +env.config = { + 'web': { + 'base_url': "/", + 'web_url': 'http://spectacleenlignes.fr', + 'db_engine':'postgresql_psycopg2', + 'db_name':'spel', + 'db_user': 'iri', + 'db_password': '', + 'db_host': 'localhost', + 'db_port': 5432, + 'haystack_url' : 'http://localhost:9200', + 'haystack_index' : 'spel', + 'log_file' : '/var/log/www/spel/spel.log', + 'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), + }, +} + +env.check_folder_access = True +