Files
mxpic_EDA/run_intranet_server.ps1
T
xsxx03-art 9b4f43f0b1 update
2026-06-03 10:06:48 +08:00

23 lines
706 B
PowerShell

<#
Description: PowerShell utility script for launching the intranet/server workflow.
Inside functions: N/A - procedural PowerShell startup commands.
Developer : Qin Yue @ 2026
Organization : OptiHK Limited
#>
$ErrorActionPreference = "Stop"
# Provide a development-safe secret when the deployment environment has not
# supplied one yet.
if (-not $env:MXPIC_SECRET_KEY) {
$env:MXPIC_SECRET_KEY = "replace-this-with-a-long-random-office-secret"
}
# Bind the Flask server to the intranet-facing interface with production debug
# behavior disabled.
$env:MXPIC_HOST = "0.0.0.0"
$env:MXPIC_PORT = "3000"
$env:MXPIC_DEBUG = "0"
# Start the backend API and static frontend server.
python backend\server.py