hack-house/run_server.sh
mirai b841d1cfdb Deleted client.py
Added client/client.py
Deleted reqs.txt
Added requirements.txt
Updated run_client.sh
Updated run_server.sh
2022-12-01 10:14:14 +03:00

14 lines
244 B
Bash

#! /bin/bash
port=$1
if [ -d venv ]; then
source venv/bin/activate
sanic server.app -H 0.0.0.0 -p $port
else
python3.10 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
sanic server.app -H 0.0.0.0 -p $port
fi