|
@@ -4,6 +4,11 @@ import sys
|
4
|
4
|
import shlex
|
5
|
5
|
import warnings
|
6
|
6
|
|
|
7
|
+#Here we have to bootstrap a minimal __loader__ context in order
|
|
8
|
+#to be able to load the settings
|
|
9
|
+#
|
|
10
|
+#This file (once bootstraped) start a new process for uWSGI. uWSGI then
|
|
11
|
+#run lodel.plugins.multisite.run.application function
|
7
|
12
|
try:
|
8
|
13
|
from lodel.context import LodelContext
|
9
|
14
|
except ImportError:
|
|
@@ -25,10 +30,10 @@ LodelContext.expose_modules(globals(), {
|
25
|
30
|
if not settings.started():
|
26
|
31
|
settings('./conf.d', multisite_confspecs.LODEL2_CONFSPECS)
|
27
|
32
|
|
28
|
|
-##@brief Starts uwsgi in background using options from confs
|
29
|
33
|
LodelContext.expose_modules(globals(), {
|
30
|
34
|
'lodel.settings': ['Settings']})
|
31
|
35
|
|
|
36
|
+##@brief Starts uwsgi in background using settings
|
32
|
37
|
def uwsgi_fork():
|
33
|
38
|
|
34
|
39
|
sockfile = os.path.join(buildconf.LODEL2VARDIR, 'uwsgi_sockets/')
|