feat(t221): add exact-order erp connector
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
if "%SHUNYUNBAO_USERNAME%"=="" (
|
||||
echo Missing SHUNYUNBAO_USERNAME.
|
||||
exit /b 1
|
||||
)
|
||||
if "%SHUNYUNBAO_PASSWORD%"=="" (
|
||||
echo Missing SHUNYUNBAO_PASSWORD.
|
||||
exit /b 1
|
||||
)
|
||||
if "%SHUNYUNBAO_SERVICE_API_KEY%"=="" (
|
||||
echo Missing SHUNYUNBAO_SERVICE_API_KEY.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
set "CONNECTOR_ROOT=%~dp0..\erp-connector"
|
||||
pushd "%CONNECTOR_ROOT%" || exit /b 1
|
||||
python -m uvicorn shunyunbaoerp.api:app ^
|
||||
--app-dir src ^
|
||||
--host 127.0.0.1 ^
|
||||
--port 8091 ^
|
||||
--no-access-log
|
||||
set "EXIT_CODE=%ERRORLEVEL%"
|
||||
popd
|
||||
exit /b %EXIT_CODE%
|
||||
Reference in New Issue
Block a user