|
1 from fabric.api import env |
|
2 from random import choice |
|
3 |
|
4 env.hosts = ['iri@web.iri.centrepompidou.fr'] |
|
5 |
|
6 env.web_group = 'www-data' |
|
7 env.folders = ['log', 'static/media'] |
|
8 |
|
9 env.repos = {'web' : "/Users/ymh/dev/workspace/egonomy"} |
|
10 env.base_export_path = "~/tmp" |
|
11 env.export_prefix = "platform" |
|
12 |
|
13 env.remote_path = { |
|
14 'web':"/iridata/www/ldt/", |
|
15 'src':"/Users/ymh/dev/tmp/testfab/src", |
|
16 'virtualenv':"/iridata/virtualenv/ldt", |
|
17 'ldt_base':"/tmp", |
|
18 'venv_export':"/iridata/users/iri/tmp", |
|
19 } |
|
20 |
|
21 env.platform_web_module = "egonomy" |
|
22 env.remote_baseline_venv = "/iridata/virtualenv/baseline2.7" |
|
23 |
|
24 env.rsync_filters = { |
|
25 'src' : [ |
|
26 "P .htpasswd", |
|
27 "P .htaccess", |
|
28 "P egonomy/config.py", |
|
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 } |
|
45 env.web_relaunch_cmd = "supervisorctl restart egonomy" |
|
46 |
|
47 |
|
48 env.config = { |
|
49 'web': { |
|
50 'base_url': "/", |
|
51 'web_url': 'http://egonomy.iri-resesarch.org', |
|
52 'db_engine':'postgresql_psycopg2', |
|
53 'db_name':'platform', |
|
54 'db_user': 'iriuser', |
|
55 'db_password': '', |
|
56 'db_host': 'sql.iri.centrepompidou.fr', |
|
57 'db_port': 5432, |
|
58 'haystack_url' : 'http://localhost:9200', |
|
59 'haystack_index' : 'egonomy', |
|
60 'log_file' : env.remote_path['web'] + '/log/log.txt', |
|
61 'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), |
|
62 }, |
|
63 } |
|
64 |