-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename start script to omit space * Use python on windows * characters doesn't exist anymore, storage is probably correct * Lock requirements.txt file with versions Since there may be breaking changes between versions of packages, it's generally recommended to use specific versions This requirements.txt file was generated by installing the existing requirements to a fresh virtual environment, then running pip freeze. * Upgrade Python requirement from 3.7 to 3.11 Python 3.7 stopped getting security updates four months ago. See https://endoflife.date/python * Rewrite README Generally, prefer using virtual environments. Reformulate and slim down some things. Add new section "Pro Tips" for cool advice. The readme does not generally need a whole debugging guide for docker. The readme is not a blogpost. Refrain from 'hot takes', please. * Update helper scripts to use venv * No point in activating venv for one command * Remove more cheeky comments
- Loading branch information
Showing
6 changed files
with
78 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
language: python | ||
python: | ||
- "3.7" | ||
- "3.11" | ||
stages: | ||
- execute | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
oyaml | ||
websockets | ||
arrow | ||
timeparse-plus | ||
geoip2 | ||
discord | ||
pystun3 | ||
aiohttp==3.8.6 | ||
aiosignal==1.3.1 | ||
arrow==1.3.0 | ||
async-timeout==4.0.3 | ||
attrs==23.1.0 | ||
certifi==2023.7.22 | ||
charset-normalizer==3.3.2 | ||
discord==2.3.2 | ||
discord.py==2.3.2 | ||
frozenlist==1.4.0 | ||
geoip2==4.7.0 | ||
idna==3.4 | ||
maxminddb==2.5.1 | ||
multidict==6.0.4 | ||
oyaml==1.0 | ||
pystun3==1.0.0 | ||
python-dateutil==2.8.2 | ||
PyYAML==6.0.1 | ||
requests==2.31.0 | ||
six==1.16.0 | ||
timeparse-plus==1.2.0 | ||
types-python-dateutil==2.8.19.14 | ||
urllib3==2.1.0 | ||
websockets==12.0 | ||
yarl==1.9.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -euxo pipefail | ||
|
||
while [ true ] | ||
do | ||
echo "Starting up server..." | ||
python3 start_server.py | ||
./venv/bin/python3 start_server.py | ||
echo "Server has shut down. Will restart in 2 seconds (use CTRL-C to cancel)" | ||
sleep 2 | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@echo off | ||
:while | ||
echo Starting up server... | ||
py start_server.py | ||
venv\Scripts\python start_server.py | ||
echo Server has shut down, restarting... | ||
timeout /t 2 /nobreak | ||
goto :while | ||
goto :while |