mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added log output when starting server via controller
This commit is contained in:
parent
e856130e19
commit
2029e5d522
@ -107,8 +107,9 @@ def getInstanceSupervisor():
|
|||||||
def start():
|
def start():
|
||||||
setup()
|
setup()
|
||||||
try:
|
try:
|
||||||
p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,cwd=DATA_DIR)
|
with open("logs/stderr.log","w") as logf:
|
||||||
sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,cwd=DATA_DIR)
|
p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=logf,cwd=DATA_DIR)
|
||||||
|
sp = subprocess.Popen(["python3","-m","maloja.supervisor"],stdout=subprocess.DEVNULL,stderr=logf,cwd=DATA_DIR)
|
||||||
print(col["green"]("Maloja started!") + " PID: " + str(p.pid))
|
print(col["green"]("Maloja started!") + " PID: " + str(p.pid))
|
||||||
|
|
||||||
from doreah import settings
|
from doreah import settings
|
||||||
|
Loading…
Reference in New Issue
Block a user