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