|
1 from fabric.api import env |
|
2 from random import choice |
|
3 |
|
4 env.hosts = ['iri@spectacleenlignes.fr'] |
|
5 |
|
6 env.web_group = 'www-data' |
|
7 env.folders = ['/var/log/spel', 'static/media'] |
|
8 |
|
9 env.repos = {'web' : {'repo':"/Users/ymh/dev/workspace/spel", 'src_root': 'src', 'module':''}} |
|
10 env.base_export_path = "~/tmp" |
|
11 env.export_prefix = "spel" |
|
12 |
|
13 env.remote_path = { |
|
14 'web':"/srv/www/spel/web", |
|
15 'src':"/srv/www/spel/src", |
|
16 'virtualenv':"/src/virtualenv/spel", |
|
17 'build_export':"/home/iri/tmp/build", |
|
18 'venv_export':"/home/iri/tmp/venv", |
|
19 } |
|
20 |
|
21 env.platform_web_module = "spel" |
|
22 env.remote_baseline_venv = "" |
|
23 |
|
24 env.rsync_filters = { |
|
25 'src' : [ |
|
26 "P spel/config.py", |
|
27 ], |
|
28 'web' : [ |
|
29 "P robots.txt", |
|
30 "P statc/media", |
|
31 ], |
|
32 'venv': [ |
|
33 "+ core", |
|
34 ] |
|
35 } |
|
36 env.web_relaunch_cmd = "supervisorctl restart spel" |
|
37 |
|
38 |
|
39 env.config = { |
|
40 'web': { |
|
41 'base_url': "/", |
|
42 'web_url': 'http://spectacleenlignes.fr', |
|
43 'db_engine':'postgresql_psycopg2', |
|
44 'db_name':'spel', |
|
45 'db_user': 'iri', |
|
46 'db_password': '', |
|
47 'db_host': 'localhost', |
|
48 'db_port': 5432, |
|
49 'haystack_url' : 'http://localhost:9200', |
|
50 'haystack_index' : 'spel', |
|
51 'log_file' : '/var/log/www/spel/spel.log', |
|
52 'secret_key' : ''.join([choice('abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)') for i in range(50)]), |
|
53 }, |
|
54 } |
|
55 |
|
56 env.check_folder_access = True |
|
57 |