forked from jacobian/django-deployment-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfab_settings.py
56 lines (53 loc) · 1.9 KB
/
fab_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
global_settings = {
'project_name': 'carpool',
'root': '/home/%(user)s/%(project_name)s',
'db_user': 'carpool',
'db_password': 'carpool',
'db_name': 'carpool',
'db_host': 'localhost',
'servername': 'carpool.com',
'postgres_user': 'postgres',
'extra_settings': 'JQUERY_UI_CSS=\'%%s/carpool/ui/css/custom-theme/jquery-ui-1.8.11.custom.css\' %% STATIC_URL',
'extra_paths': '/home/%(user)s/%(project_name)s/django-carpool:/home/%(user)s/%(project_name)s/django-carpool/carpool'
}
group_settings = {
'vagrant_apache': {
'wsgipath': '/home/%(user)s/%(project_name)s.wsgi',
'wsgi_user': '%(user)s',
'wsgi_group': 'www-data',
'apache_pid_file': '/var/run/apache2.pid',
'apache_run_user': 'www-data',
'apache_run_group': 'www-data'
},
'vagrant_nginx': {
'use_nginx': 'true',
'nginx_user': 'www-data',
'gunicorn_host': '127.0.0.1',
'gunicorn_port': '8001',
'nginx_confdir': '/etc/nginx/',
'nginx_pidfile': '/var/run/nginx.pid',
'nginx_bin': '/usr/sbin/nginx'
},
'bsd': {
'servername': 'carpool.cylon.no',
'postgres_user': 'pgsql',
'extra_settings': '%(extra_settings)s\nGEOS_LIBRARY_PATH=\'/opt/lib/libgeos_c.so.7\'',
'use_nginx': 'true',
'gunicorn_host': '127.0.0.1',
'gunicorn_port': '8050',
'nginx_confdir': '/usr/local/nginx/conf/',
'nginx_pidfile': '/usr/local/nginx/logs/nginx.pid',
'nginx_bin': '/usr/local/nginx/sbin/nginx'
}
}
servers = {
# 'role', [
# ['me@server:port', 'settings_group']
# ],
'develop': [['vagrant@127.0.0.1:22', 'vagrant_apache']],
'staging': [['vagrant@10.0.2.2:5522', 'vagrant_apache']],
'production': [
# ['vagrant@10.0.2.2:6622', 'vagrant_apache'],
['carpool@mainframe.cylon.no', 'bsd']
]
}