mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
add option to capture stdout
This commit is contained in:
parent
bb9d9239c0
commit
3c517bbaf5
11 changed files with 64 additions and 20 deletions
|
@ -6,15 +6,15 @@ set -e
|
|||
|
||||
SCRIPT_PATH=$(realpath $0)
|
||||
BASE_PATH=$(dirname $SCRIPT_PATH)
|
||||
SERVER_PATH="$BASE_PATH/wisp_server"
|
||||
|
||||
cd $BASE_PATH/wisp_server
|
||||
if [ ! -d ".venv" ]; then
|
||||
python3 -m venv .venv
|
||||
if [ ! -d "$SERVER_PATH.venv" ]; then
|
||||
python3 -m venv $SERVER_PATH/.venv
|
||||
fi
|
||||
source .venv/bin/activate
|
||||
source $SERVER_PATH/.venv/bin/activate
|
||||
|
||||
if ! python3 -c "import websockets" 2> /dev/null; then
|
||||
pip3 install -r requirements.txt
|
||||
fi
|
||||
|
||||
python3 main.py
|
||||
python3 $SERVER_PATH/main.py "$@"
|
|
@ -1 +1 @@
|
|||
Subproject commit bd7bca97b22023a1b49d0f5a09081ddcbb4ad49c
|
||||
Subproject commit 65d312414aa896d8f9e18f48e8fe37b72d75ee5c
|
Loading…
Add table
Add a link
Reference in a new issue