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':"/srv/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)]),
'stream_url' : 'http://spectacleenlignes.fr/',
'stream_src_prefix' : '',
'ffmpeg_path': '',
'google_analytics_code': '',
'email_use_tls' : 'True',
'email_host' : '',
'email_host_user' : '',
'email_port' : '',
'forbidden_stream_url' : '',
'audio_record_url' : ''
},
}
env.check_folder_access = True