hack-house/run_server.sh
mirai 92eff84613 Updated run_server.sh
Updated ws_talk.py
2022-12-02 08:19:30 +03:00

14 lines
260 B
Bash
Executable File

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