-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.py
61 lines (56 loc) · 2.44 KB
/
configuration.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
57
58
59
60
61
"""
Add and configure the deployments here!
To add an app called {app_name}:
1. In the parent directory generate a secret key for {app_name}:
sudo python3 generate-key.py {app_name}
2. Add a line like this to DEPLOYMENTS:
"{app_name}": ConnectTo("server").command("/path/to/redeployment-script"),
"""
from .commands import ConnectTo, NotConfigured, RedeploySelf
DEPLOYMENTS = {
# gunaha.altlab.app
# TODO: configure Gunaha (Tsuut'ina dictionary) for deployment
"gunaha": NotConfigured(),
# hello.altlab.dev
"hello": ConnectTo("itw.altlab.dev").command("/opt/hello.altlab.dev/deploy"),
# morphodict: itwewina, {itwiwina,gunaha,srseng}.altlab.dev
"itwewina": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict/docker/deploy"
),
# morphodict api: api.{itwewina, gunaha, itwiwina, arapaho, guusaaw}.altlab.dev
"morphodict-backend": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict-backend/docker/deploy"
),
# itwewina front-end
"crkeng-frontend": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict-frontend/crkeng/docker/deploy"
),
# itwiwina front-end
"cwdeng-frontend": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict-frontend/cwdeng/docker/deploy"
),
# gunaha front-end
"srseng-frontend": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict-frontend/srseng/docker/deploy"
),
# guusaaw front-end
"hdneng-frontend": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict-frontend/hdneng/docker/deploy"
),
# arapaho front-end
"arpeng-frontend": ConnectTo("[email protected]").command(
"/opt/morphodict/home/morphodict-frontend/arpeng/docker/deploy"
),
# Korp
"korp-frontend": ConnectTo("[email protected]").command(
"/data_local/home/korp/docker-compose/deploy"
),
# speech-db.altlab.app
"speech-db": ConnectTo("[email protected]").command("/opt/speech-db/deploy"),
# speech-db.altlab.dev
"speech-db-dev": ConnectTo("[email protected]").command("/opt/speech-db-dev/deploy"),
# semanticexplorer.altlab.dev
"semantic-explorer": ConnectTo("[email protected]").command("/opt/morphodict/home/vocabulary-explorer/deploy"),
# deploy.altlab.dev
"deploy": RedeploySelf(),
}