forked from APTRS/APTRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
31 lines (28 loc) · 781 Bytes
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
echo:
echo # ###### ####### ###### #####
echo # # # # # # # # #
echo # # # # # # # #
echo # # ###### # ###### #####
echo ####### # # # # #
echo # # # # # # # #
echo # # # # # # #####
echo:
echo [1;33m Version 0.1[0m
if [%1]==[] goto usage
SET conf=%1
goto :run
:usage
SET conf=0.0.0.0:8000
:run
set venv=.\venv\Scripts\activate
set server=.\venv\Scripts\waitress-serve.exe
if exist %server% (
echo Running APTRS on %conf%
%venv%
%server% --listen=%conf% --threads=10 --channel-timeout=5600 APTRS.wsgi:application
) else (
echo Unable to Start the server.
pause
exit /b
)