libcurl.js/server/run.sh
2024-01-10 20:42:58 -05:00

16 lines
No EOL
258 B
Bash
Executable file

#!/bin/bash
#install dependencies and run the proxy server
set -e
if [ ! -d ".venv" ]; then
python3 -m venv .venv
fi
source .venv/bin/activate
if ! python3 -c "import websockets" 2> /dev/null; then
pip3 install -r requirements.txt
fi
python3 main.py