-
Notifications
You must be signed in to change notification settings - Fork 0
/
mendigames.py
53 lines (46 loc) · 2.09 KB
/
mendigames.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
context = {}
# machine changeable values
context['localuser'] = "xande"
context['user'] = "xande"
context['sudouser'] = 'xande'
context['hosts'] = ["192.168.0.116"]
context['github_username'] = "xvaldetaro"
context['github_email'] = "xvaldetaro@gmail.com"
context['github_key'] = "github"
context['local_ssh_dir'] = "/home/%s/.ssh" % context['localuser']
# project changeable values
context['proj'] = "mendigames"
proj = context['proj']
context['git_url'] = "git@github.com:xvaldetaro/%s.git" % proj
context['domains'] = ["www.%s.com.br" % proj,"%s.com.br" % proj, "www.%s.com" % proj,"%s.com" % proj]
context['proxy_port'] = "8000"
context['local_env_file'] = '/home/%s/confs/%s/prod.sh' % (context['localuser'], context['proj'])
# DB access
context['db_endpoint'] = 'localhost'
context['db_port'] = '3306'
context['db_root'] = 'root'
# This is NOT the root password (which you will type when prompted).
# This is the desired project user db password.
context['db_password'] = '1234'
#uncomment to provide ssl:
#context['ssl_port'] = "8443"
# machine fixed values
context['home_dir'] = "/home/%s" % context['user']
base_dir = context['home_dir']
context['apps_dir'] = "%s/apps" % base_dir
context['venvs_dir'] = "%s/venvs" % base_dir
context['confs_dir'] = "%s/confs" % base_dir
context['logs_dir'] = "%s/logs" % base_dir
context['statics_dir'] = "%s/statics" % base_dir
# project fixed values
context['proj_app_dir'] = "%s/%s" % (context['apps_dir'],context['proj'])
context['proj_venv_dir'] = "%s/%s" % (context['venvs_dir'],context['proj'])
context['proj_conf_dir'] = "%s/%s" % (context['confs_dir'],context['proj'])
context['proj_log_dir'] = "%s/%s" % (context['logs_dir'],context['proj'])
context['ssh_dir'] = "/home/%s/.ssh" % context['user']
context['local_ssh_pem'] = "%s/key.pem" % context['local_ssh_dir']
context['local_ssh_pub'] = "%s/id_rsa.pub" % context['local_ssh_dir']
context['local_ssh_priv'] = "%s/id_rsa" % context['local_ssh_dir']
# uncomment to provide local statics
context['proj_static_dir'] = "%s/%s" % (context['statics_dir'],context['proj'])
context['launch_cmd'] = "%s/launch.sh" % context['proj_app_dir']