|
3
|
1 |
from fabric.api import env |
|
|
2 |
|
|
54
|
3 |
env.hosts = ['hp@54.248.83.51'] |
|
3
|
4 |
|
|
54
|
5 |
env.web_group = 'nginx' |
|
62
|
6 |
env.folders = {'ldt': ['index', 'log', 'static/media'], 'hp': ['../static', '../static/media','log'] } |
|
3
|
7 |
|
|
17
|
8 |
env.local_folders = { |
|
54
|
9 |
'ldt' : 'ldt/web', |
|
17
|
10 |
'virtualenv': 'virtualenv', |
|
54
|
11 |
'hp' : 'src' |
|
|
12 |
} |
|
|
13 |
|
|
|
14 |
env.base_export_path = "/Users/ymh/dev/tmp/hp/export" |
|
|
15 |
env.export_prefix = "hp" |
|
|
16 |
|
|
|
17 |
env.remote_web_path = { |
|
|
18 |
'ldt' : "/ebs/ldt/web", |
|
|
19 |
'hp' : "/ebs/hp/src" |
|
17
|
20 |
} |
|
|
21 |
|
|
54
|
22 |
env.web_module = {'ldt':"ldtplatform", 'hp':"hp"} |
|
|
23 |
|
|
|
24 |
env.remote_virtualenv_path = "/ebs/ldt/virtualenv/ldt_venv" |
|
|
25 |
env.remote_venv_export_path = "/tmp/ldt_venv_tmp" |
|
|
26 |
env.remote_baseline_venv = "/ebs/ldt/virtualenv/baseline" |
|
|
27 |
|
|
|
28 |
env.web_rsync_filters = { |
|
|
29 |
'ldt': [ |
|
|
30 |
"+ core", |
|
|
31 |
"P .htpasswd", |
|
|
32 |
"P .htaccess", |
|
|
33 |
"P ldtplatform/.htaccess", |
|
|
34 |
"P ldtplatform/config.py", |
|
|
35 |
"P ldtplatform/modwsgi.wsgi", |
|
|
36 |
"P robots.txt", |
|
|
37 |
"P env/***", |
|
|
38 |
"P log/***", |
|
|
39 |
"P index/***", |
|
|
40 |
"P static/media/***", |
|
|
41 |
"P crossdomain.xml", |
|
|
42 |
], |
|
|
43 |
'hp': [ |
|
|
44 |
"+ core", |
|
|
45 |
"P .htpasswd", |
|
|
46 |
"P .htaccess", |
|
|
47 |
"P hp/.htaccess", |
|
|
48 |
"P hp/config.py", |
|
|
49 |
"P hp/modwsgi.wsgi", |
|
|
50 |
"P robots.txt", |
|
|
51 |
"P log/***", |
|
|
52 |
"P index/***", |
|
|
53 |
"P crossdomain.xml", |
|
|
54 |
] |
|
|
55 |
} |
|
3
|
56 |
env.venv_rsync_filters = [ |
|
|
57 |
"+ core", |
|
|
58 |
] |
|
|
59 |
|
|
54
|
60 |
env.relaunch_cmd = {'ldt':"supervisorctl restart ldtplatform", 'hp':"supervisorctl restart hp"} |
|
3
|
61 |
|
|
54
|
62 |
env.config = { |
|
|
63 |
'ldt': { |
|
|
64 |
'base_url': "/ldtplatform", |
|
|
65 |
'web_url': 'http://54.248.83.51', |
|
|
66 |
'stream_url': "http://54.248.83.51/media/videos", |
|
|
67 |
'stream_src_prefix': "/ebs/media/videos", |
|
|
68 |
'ffmpeg_path' : "", |
|
|
69 |
'db_engine':'postgresql_psycopg2', |
|
|
70 |
'db_name':'ldtplatform', |
|
|
71 |
'db_user': 'hp', |
|
|
72 |
'db_password': 'hyperplateau', |
|
|
73 |
'db_host': '127.0.0.1', |
|
|
74 |
'db_port': 0, |
|
|
75 |
'log_file' : env.remote_web_path['ldt'] + '/log/log.txt', |
|
|
76 |
'index_path' : '', |
|
|
77 |
'google_analytics_code' : "", |
|
|
78 |
'email_use_tls' : True, |
|
|
79 |
'email_host' : "", |
|
|
80 |
'email_host_user' : "", |
|
|
81 |
'email_host_user' : "", |
|
|
82 |
'email_port' : 0, |
|
|
83 |
'forbidden_stream_url' : "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path=" |
|
|
84 |
}, |
|
|
85 |
'hp' : { |
|
|
86 |
'db_engine':'postgresql_psycopg2', |
|
|
87 |
'db_name':'ldtplatform', |
|
|
88 |
'db_user': 'hp', |
|
|
89 |
'db_password': 'hyperplateau', |
|
|
90 |
'db_host': '127.0.0.1', |
|
|
91 |
'db_port': 0, |
|
|
92 |
'base_url' : '/hp', |
|
|
93 |
'ldt_netloc' : '54.248.83.51', |
|
62
|
94 |
'ldt_baseurl': '/ldt/', |
|
54
|
95 |
'ldt_url' : 'ldtplatform/', |
|
|
96 |
}, |
|
|
97 |
} |
|
3
|
98 |
|