| author | ymh <ymh.work@gmail.com> |
| Wed, 08 Jan 2020 17:49:53 +0100 | |
| changeset 205 | 147583c43f0d |
| parent 134 | a84aa262847c |
| permissions | -rw-r--r-- |
|
118
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
from fabric.api import env |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
| 121 | 3 |
#non specific settings |
4 |
env.source_rel_path = 'server' |
|
|
118
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
# the user to use for the remote commands |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
env.user = 'user' |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
# the servers where the commands are executed |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
env.hosts = ['server'] |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
env.srv_venv_path = 'virtualenv folder path on host' |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
env.srv_restart_cmd = '<restart cmd>' |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
env.srv_python_location = '' |
|
fea47f1054e2
prepare for server install, mv settings, add setup, correct various problems
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
env.srv_config_path = '<path for config>' |
| 134 | 14 |
env.srv_django_settings_module = 'ammico_xxx' |