23 lines
706 B
PowerShell
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
|