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