-
Notifications
You must be signed in to change notification settings - Fork 0
/
dbconfig.example.py
62 lines (53 loc) · 1.59 KB
/
dbconfig.example.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
62
#!/usr/bin/python
# -*- coding: utf-8 -*-
helpscout_api = dict(
app_id='',
app_secret=''
)
local_db = dict(
dbapi = 'postgresql://superset:superset@172.18.0.4:5432/dades'
)
test_db = dict(
dbapi = 'postgresql://superset:superset@localhost:5432/dades_test'
)
directories = {
'NEUROENERGIA_HISTORICAL': 'somenergia/somenergia-indicadors-kpis/realdata/NEUROENERGIA',
'NEUROENERGIA_TEMP': 'somenergia/somenergia-indicadors-kpis/realdata/NEUROENERGIATEMP',
'OMIE_HISTORICAL_PDBC': 'somenergia/somenergia-indicadors-kpis/realdata/OMIE/PDBC',
'OMIE_TEMP_PDBC': 'somenergia/somenergia-indicadors-kpis/realdata/OMIETEMP/PDBC',
'OMIE_DATA': 'somenergia/somenergia-indicadors-kpis/realdata/data'
}
test_directories = {
'NEUROENERGIA_HISTORICAL': 'testdata/NEUROENERGIA',
'NEUROENERGIA_TEMP': 'testdata/TEMP/NEUROENERGIA',
'OMIE_HISTORICAL_PDBC': 'testdata/PDBC',
'OMIE_TEMP_PDBC': 'testdata/TEMP/PDBC'
}
TARGET = 'prod'
if TARGET == 'test':
# Testing
ooop = dict(
dbname = 'somedb',
port = 18000,
user = 'chaplin',
uri = 'http://lerp.somenergia.lan',
pwd = 'werenotmachines',
)
if TARGET == 'prod':
# Productiu
ooop = dict(
dbname = 'somedb',
port = 19000,
user = 'groucho',
uri = 'https://brothers.somenergia.coop',
pwd = 'laprimeraparte',
)
erppeek = dict(
server='{uri}:{port}'.format(**ooop),
db=ooop['dbname'],
user=ooop['user'],
password=ooop['pwd'],
)
puppis_test_db = dict(
dbapi = 'postgresql://groucho:delasegundaparte@camarot.somenergia.coop:5432/somedb'
)