-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.py
25 lines (19 loc) · 1.02 KB
/
start.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
import imp
from geobricks_rest_engine.core.utils import dict_merge
from geobricks_rest_engine.config.common_settings import settings as common_settings
from geobricks_rest_engine.config.rest_settings import settings as rest_settings
from geobricks_rest_engine.core.utils import dict_merge
settings_app = imp.load_source('geobricks_common_settings', '/geobricks/config/common_settings.py')
settings_rest_modules = imp.load_source('geobricks_rest_settings', '/geobricks/config/rest_settings.py')
#from geobricks_common.rest import common_rest
# loading settings
common_settings["settings"] = dict_merge(common_settings, settings_app)
common_settings["settings"] = common_settings["settings"]["settings"]
# loading modules
rest_settings["settings"] = dict_merge(rest_settings, settings_rest_modules)
rest_settings["settings"] = rest_settings["settings"]["settings"]
# load engine
from geobricks_rest_engine.rest import engine
engine.run_engine(False)
# this is the variable returning to uwsgi
from geobricks_rest_engine.rest.engine import app