|
3
|
1 |
from fabric.api import env |
|
|
2 |
|
|
|
3 |
env.hosts = ['<user>@<server1>'] |
|
|
4 |
|
|
|
5 |
env.web_group = '<web_user_group>' |
|
|
6 |
env.folders = ['log', 'static/media'] |
|
|
7 |
|
|
17
|
8 |
env.local_folders = { |
|
|
9 |
'web': 'ldt/web', |
|
|
10 |
'virtualenv': 'virtualenv', |
|
|
11 |
} |
|
|
12 |
|
|
3
|
13 |
env.base_export_path = "<local path used to export hg version>" |
|
|
14 |
env.export_prefix = "hyperplateau" |
|
|
15 |
env.remote_web_path = "<path of website root folder on the server>" |
|
|
16 |
env.platform_web_module = "hyperplateau" |
|
|
17 |
env.remote_virtualenv_path = "<path of the virtualenv on the server>" |
|
|
18 |
env.remote_venv_export_path = "<path for temporary export path of virtualenv resources>" |
|
|
19 |
env.remote_baseline_venv = "<path of virtualenv baseline used for virtualenv creation>" |
|
|
20 |
env.web_rsync_filters = [ |
|
|
21 |
"+ core", |
|
|
22 |
"P .htpasswd", |
|
|
23 |
"P .htaccess", |
|
6
|
24 |
"P ldtplatform/.htaccess", |
|
|
25 |
"P ldtplatform/config.py", |
|
|
26 |
"P ldtplatform/modwsgi.wsgi", |
|
3
|
27 |
"P robots.txt", |
|
|
28 |
"P env/***", |
|
|
29 |
"P log/***", |
|
|
30 |
"P index/***", |
|
|
31 |
"P static/media/***", |
|
|
32 |
"P crossdomain.xml", |
|
|
33 |
] |
|
|
34 |
env.venv_rsync_filters = [ |
|
|
35 |
"+ core", |
|
|
36 |
] |
|
|
37 |
env.web_relaunch_cmd = "supervisorctl restart hyperplateau" |
|
|
38 |
|
|
|
39 |
env.base_url = "/" |
|
|
40 |
env.web_url = "http://<base_url>" |
|
|
41 |
env.stream_url = "<base_streaming_url>" #optional |
|
|
42 |
|
|
|
43 |
env.stream_src_prefix = "" |
|
|
44 |
env.ffmpeg_path = "<path_to_ffmpeg>" #optional |
|
|
45 |
|
|
|
46 |
env.db_engine = '<database driver>' #cf django documentation |
|
|
47 |
env.db_name = '<database name>' |
|
|
48 |
env.db_user = '<database user>' |
|
|
49 |
env.db_password = '' |
|
|
50 |
env.db_host = '<database host>' |
|
|
51 |
env.db_port = <database port> |
|
|
52 |
|
|
|
53 |
env.log_file = env.remote_web_path + '/log/log.txt' |
|
|
54 |
|
|
|
55 |
env.google_analytics_code = "" |
|
|
56 |
|
|
|
57 |
env.email_use_tls = True |
|
|
58 |
env.email_host = "" |
|
|
59 |
env.email_host_user = "" |
|
|
60 |
env.email_host_user = "" |
|
|
61 |
env.email_port = "" |
|
|
62 |
|
|
|
63 |
env.forbidden_stream_url = "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path=" |
|
|
64 |
|