Refactor web_scan.py for improved readability and maintainability; add cron job script for npm log backups; update start.ps1 for consistent formatting.

This commit is contained in:
zwitschi committed 2026-09-08 19:49:11 +02:00
1 parent 0d1cd21468
commit c2eba88ac8
113 files changed
+772606 -772579

No files matched your search

+21 -21
View File
@@ -1,21 +1,21 @@
<#
.SYNOPSIS
Starts the flask application in a virtual environment.
.DESCRIPTION
This script activates the virtual environment and starts the flask application.
It only runs a single threaded instance of the application, so it is not suitable for production use.
#>
## Check if the virtual environment exists
if (-Not (Test-Path -Path ".\.venv\Scripts\Activate.ps1")) {
Write-Host "Virtual environment not found. Please create it first."
exit 1
}
## Activate the virtual environment
& .\.venv\Scripts\Activate.ps1
## Start the Flask application
Write-Host "Starting the Flask application..."
& .\.venv\Scripts\python.exe .\app.py
<#
.SYNOPSIS
Starts the flask application in a virtual environment.
.DESCRIPTION
This script activates the virtual environment and starts the flask application.
It only runs a single threaded instance of the application, so it is not suitable for production use.
#>
## Check if the virtual environment exists
if (-Not (Test-Path -Path ".\.venv\Scripts\Activate.ps1")) {
Write-Host "Virtual environment not found. Please create it first."
exit 1
}
## Activate the virtual environment
& .\.venv\Scripts\Activate.ps1
## Start the Flask application
Write-Host "Starting the Flask application..."
& .\.venv\Scripts\python.exe .\app.py