enhance build script and logging: add destination option to build command, log output to uploader.log, and improve artifact handling
This commit is contained in:
@@ -71,6 +71,7 @@ DELETE_FILES_ON_UPLOAD = True
|
||||
DEBUG = False
|
||||
|
||||
logging.getLogger('niceGUI').setLevel(logging.INFO)
|
||||
logger.add("uploader.log", rotation="10 MB")
|
||||
|
||||
if DEBUG:
|
||||
BASE_SITE_URL = "http://localhost:8000"
|
||||
@@ -542,6 +543,7 @@ def login() -> Optional[RedirectResponse]:
|
||||
return None
|
||||
|
||||
|
||||
@logger.catch
|
||||
@ui.page("/")
|
||||
def main_page():
|
||||
async def watch_for_shutdown():
|
||||
@@ -683,6 +685,7 @@ def main_page():
|
||||
ui.button("About", on_click=about_dialog.open).props("outline color=white")
|
||||
|
||||
|
||||
@logger.catch
|
||||
def launch_app(
|
||||
work_dir: Path = typer.Option(WORK_DIR, help="Working directory"),
|
||||
nng: bool = typer.Option(True, help="Use nng"),
|
||||
|
||||
Reference in New Issue
Block a user