author | ymh <ymh.work@gmail.com> |
Thu, 29 Nov 2012 18:59:30 +0100 | |
changeset 6 | 740d11ae9e28 |
parent 1 | 5778de052a1b |
child 50 | 2123324cca5a |
permissions | -rw-r--r-- |
0 | 1 |
from fabric.api import env |
2 |
||
3 |
env.hosts = ['iri@web.iri.centrepompidou.fr'] |
|
4 |
||
5 |
env.web_group = 'www-data' |
|
6 |
env.folders = ['log', 'static/media'] |
|
7 |
||
1 | 8 |
env.repos = {'ldt' : "/Users/ymh/dev/workspace/platform", 'web' : "/Users/ymh/dev/workspace/platform_web" } |
0 | 9 |
env.base_export_path = "~/tmp" |
10 |
env.export_prefix = "platform" |
|
1 | 11 |
|
12 |
env.remote_path = { |
|
13 |
'web':"/iridata/www/ldt/", |
|
14 |
'src':"/Users/ymh/dev/tmp/testfab/src", |
|
15 |
'virtualenv':"/iridata/virtualenv/ldt", |
|
16 |
'ldt_base':"/tmp", |
|
17 |
'venv_export':"/iridata/users/iri/tmp", |
|
18 |
} |
|
19 |
||
0 | 20 |
env.platform_web_module = "ldtplatform" |
21 |
env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7" |
|
1 | 22 |
|
23 |
env.rsync_filters = { |
|
24 |
'src' : [ |
|
25 |
"P .htpasswd", |
|
26 |
"P .htaccess", |
|
27 |
"P ldtplatform/config.py", |
|
28 |
"P ldtplatform/modwsgi.wsgi", |
|
29 |
], |
|
30 |
'web': [ |
|
31 |
"+ core", |
|
32 |
"P .htpasswd", |
|
33 |
"P .htaccess", |
|
34 |
"P robots.txt", |
|
35 |
"P env/***", |
|
36 |
"P log/***", |
|
37 |
"P index/***", |
|
38 |
"P static/media/***", |
|
39 |
"P crossdomain.xml", |
|
40 |
], |
|
41 |
'venv': [ |
|
42 |
"+ core", |
|
43 |
] |
|
44 |
} |
|
0 | 45 |
env.web_relaunch_cmd = "supervisorctl restart platform" |
46 |
||
47 |
||
6
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
48 |
env.config = { |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
49 |
'web': { |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
50 |
'base_url': "/", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
51 |
'web_url': 'http://ldt.iri.centrepompidou.fr', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
52 |
'stream_url': "rtmp://media.iri.centrepompidou.fr/ddc_player/", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
53 |
'stream_src_prefix': "", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
54 |
'ffmpeg_path' : "/usr/bin/ffmpeg", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
55 |
'db_engine':'postgresql_psycopg2', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
56 |
'db_name':'platform', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
57 |
'db_user': 'iriuser', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
58 |
'db_password': '', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
59 |
'db_host': 'sql.iri.centrepompidou.fr', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
60 |
'db_port': 5432, |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
61 |
'log_file' : env.remote_path['web'] + '/log/log.txt', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
62 |
'index_path' : 'env.remote_path['web'] + '/index/', |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
63 |
'google_analytics_code' : "", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
64 |
'email_use_tls' : True, |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
65 |
'email_host' : "", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
66 |
'email_host_user' : "", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
67 |
'email_host_user' : "", |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
68 |
'email_port' : 0, |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
69 |
'forbidden_stream_url' : "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path=" |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
70 |
}, |
740d11ae9e28
correct fabric + virtualenv creation (remove LDT)
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
71 |
} |
0 | 72 |