- 增加ServerChanPush2TelegramBot.bat:单进程执行程序

- 增加ServerChanPush2TelegramBot_wsgi.bat:使用waitress-serve执行程序
- 修改.gitignore:忽略bot_config.json
This commit is contained in:
yshtcn 2023-09-06 23:21:50 +08:00
parent ba2323d4a2
commit 663b7689e4
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -158,3 +158,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
/bot_config.json

View File

@ -0,0 +1,5 @@
@echo off
@echo ServerChanPush2TelegramBot start
cd /d %~dp0
py ServerChanPush2TelegramBot.py
pause

View File

@ -0,0 +1,6 @@
@echo off
title 【服务器-请勿关闭】ServerChanPush2TelegramBot
cd /d %~dp0
:start
waitress-serve --threads=10 --listen=*:5000 ServerChanPush2TelegramBot:app
goto start