Better docs
All checks were successful
Build and push Docker image at git tag / build (push) Successful in 7m7s
All checks were successful
Build and push Docker image at git tag / build (push) Successful in 7m7s
This commit is contained in:
@ -8,6 +8,8 @@
|
||||
# source code released under the terms of GNU Public License Version 3
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
import os
|
||||
|
||||
from fastapi import FastAPI, Request
|
||||
from fastapi.templating import Jinja2Templates
|
||||
|
||||
@ -77,6 +79,6 @@ class WebMain():
|
||||
|
||||
return ex
|
||||
|
||||
if __name__ == "ums.management.main":
|
||||
if __name__ == "ums.management.main" and os.environ.get('SERVE', 'false') == 'true':
|
||||
main = WebMain()
|
||||
app = main.app
|
Reference in New Issue
Block a user