|
|
||
|---|---|---|
| discord_bot | ||
| velconnect | ||
| .gitignore | ||
| README.md | ||
README.md
VELConnect API Setup
cd velconnect- Create pip env:
python3 -m venv env - Activate the env
. env/bin/activate - Install packages
pip install -r requirements.txt - Add
config_mysql.py- Get from some old server
- Run
./run_server.sh- Or set up systemctl service:
[Unit] Description=VELConnect API Requires=network.target After=network.target [Service] User=ubuntu Group=ubuntu Environment="PATH=/home/ubuntu/VEL-Connect/velconnect/env/bin" WorkingDirectory=/home/ubuntu/VEL-Connect/velconnect ExecStart=/home/ubuntu/VEL-Connect/velconnect/env/bin/uvicorn --port 8005 main:app [Install] WantedBy=multi-user.target - Enter the above in
/etc/systemd/system/velconnect.service sudo systemctl enable velconnectsudo systemctl start velconnect
- Or set up systemctl service: