Move startup code to an entrypoint function
Prevents further issues with startup.
This commit is contained in:
parent
25f80a4478
commit
73407e245f
|
@ -20,3 +20,5 @@
|
|||
###############################################################################
|
||||
|
||||
import pvcapid.Daemon # noqa: F401
|
||||
|
||||
pvcapid.Daemon.entrypoint()
|
||||
|
|
|
@ -107,6 +107,7 @@ except Exception as e:
|
|||
# Entrypoint
|
||||
##########################################################
|
||||
|
||||
def entrypoint():
|
||||
import pvcapid.flaskapi as pvc_api # noqa: E402
|
||||
|
||||
if config['ssl_enabled']:
|
||||
|
|
Loading…
Reference in New Issue