libcurl.js/server/run.sh
2024-01-18 14:39:39 -05:00

20 lines
No EOL
346 B
Bash
Executable file

#!/bin/bash
#install dependencies and run the proxy server
set -e
SCRIPT_PATH=$(realpath $0)
BASE_PATH=$(dirname $SCRIPT_PATH)
cd $BASE_PATH/wisp_server
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