from fabric.api import env
env.hosts = ['hp@54.248.83.51']
env.web_group = 'nginx'
env.folders = {'ldt': ['index', 'log', 'static/media'], 'hp': ['../static', '../static/media','log'] }
env.local_folders = {
'ldt' : 'ldt/web',
'virtualenv': 'virtualenv',
'hp' : 'src'
}
env.base_export_path = "/Users/ymh/dev/tmp/hp/export"
env.export_prefix = "hp"
env.remote_web_path = {
'ldt' : "/ebs/ldt/web",
'hp' : "/ebs/hp/src"
}
env.web_module = {'ldt':"ldtplatform", 'hp':"hp"}
env.remote_virtualenv_path = "/ebs/ldt/virtualenv/ldt_venv"
env.remote_venv_export_path = "/tmp/ldt_venv_tmp"
env.remote_baseline_venv = "/ebs/ldt/virtualenv/baseline"
env.web_rsync_filters = {
'ldt': [
"+ core",
"P .htpasswd",
"P .htaccess",
"P ldtplatform/.htaccess",
"P ldtplatform/config.py",
"P ldtplatform/modwsgi.wsgi",
"P robots.txt",
"P env/***",
"P log/***",
"P index/***",
"P static/media/***",
"P crossdomain.xml",
],
'hp': [
"+ core",
"P .htpasswd",
"P .htaccess",
"P hp/.htaccess",
"P hp/config.py",
"P hp/modwsgi.wsgi",
"P robots.txt",
"P log/***",
"P index/***",
"P crossdomain.xml",
]
}
env.venv_rsync_filters = [
"+ core",
]
env.relaunch_cmd = {'ldt':"supervisorctl restart ldtplatform", 'hp':"supervisorctl restart hp"}
env.config = {
'ldt': {
'base_url': "/ldtplatform",
'web_url': 'http://54.248.83.51',
'stream_url': "http://54.248.83.51/media/videos",
'stream_src_prefix': "/ebs/media/videos",
'ffmpeg_path' : "",
'db_engine':'postgresql_psycopg2',
'db_name':'ldtplatform',
'db_user': 'hp',
'db_password': 'hyperplateau',
'db_host': '127.0.0.1',
'db_port': 0,
'log_file' : env.remote_web_path['ldt'] + '/log/log.txt',
'index_path' : '',
'google_analytics_code' : "",
'email_use_tls' : True,
'email_host' : "",
'email_host_user' : "",
'email_host_user' : "",
'email_port' : 0,
'forbidden_stream_url' : "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path="
},
'hp' : {
'db_engine':'postgresql_psycopg2',
'db_name':'ldtplatform',
'db_user': 'hp',
'db_password': 'hyperplateau',
'db_host': '127.0.0.1',
'db_port': 0,
'base_url' : '/hp',
'ldt_netloc' : '54.248.83.51',
'ldt_baseurl': '/ldt/',
'ldt_url' : 'ldtplatform/',
},
}