IIS proxies /gomag/* to localhost:5003, so uvicorn needs --root-path /gomag to serve static files and routes correctly under the prefix. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
10 lines
292 B
Batchfile
10 lines
292 B
Batchfile
@echo off
|
|
REM Start GoMag Import Manager - Windows (NSSM service)
|
|
cd /d "%~dp0"
|
|
|
|
set TNS_ADMIN=C:\roa\instantclient_11_2_0_2
|
|
set PATH=C:\app\Server\product\18.0.0\dbhomeXE\bin;%PATH%
|
|
|
|
cd api
|
|
"%~dp0venv\Scripts\python.exe" -m uvicorn app.main:app --host 0.0.0.0 --port 5003 --root-path /gomag
|