-
Notifications
You must be signed in to change notification settings - Fork 0
/
fab_settings.py
49 lines (45 loc) · 1.37 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
extra_paths = ':'.join([
'/home/%(user)s/%(project_name)s/local_apps',
'/home/%(user)s/%(project_name)s/project',
'/home/%(user)s/%(project_name)s/project/%(project_name)s'
])
global_settings = [
('postgres_logging', False),
('django_debug', True),
('project_name', 'simple'),
('db_user', 'simple'),
('db_password', 'example123'),
('db_host', 'localhost'),
('use_nginx', 'true'),
('nginx_user', 'www-data'),
('nginx_confdir', '/etc/nginx/'),
('nginx_pidfile', '/var/run/nginx.pid'),
('nginx_bin', '/usr/sbin/nginx'),
('gunicorn_host', '127.0.0.1'),
('extra_settings', ''),
('staticroot', '/home/%(user)s/static'),
('mediaroot', '/home/%(user)s/static/media'),
('pg_dump', '/usr/bin/pg_dump'),
('pg_dropdb', '/usr/bin/dropdb'),
('psql', '/usr/bin/psql'),
('postgres_user', 'postgres'),
('elasticsearch_host', '127.0.0.1'),
('root', '/home/%(user)s/%(project_name)s'),
('extra_paths', extra_paths)
]
group_settings = {
'vagrantdevelop': {
'email': 'my@oh.no',
'servername': '33.33.33.10',
'gunicorn_port': '8001',
'gunicorn_autostart': 'true',
'db_name': 'simple_develop',
'memcached_port': '11212'
}
}
servers = {
# 'role', [
# ['me@server:port', 'settings_group']
# ],
'vagrant': [['vagrant@127.0.0.1:22', 'vagrantdevelop']],
}