diff --git a/deployall.sh b/deployall.sh new file mode 100755 index 0000000..c3d2cd3 --- /dev/null +++ b/deployall.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Navigate to your git repository directory + +# Execute git commands +git push deploytest master +git push deploy master diff --git a/requirements.txt b/requirements.txt index 424434f..9578c07 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,6 +30,7 @@ dateparser==1.1.8 decorator==5.1.1 defusedxml==0.7.1 dill==0.3.7 +dm-tree==0.1.8 entrypoints==0.4 exceptiongroup==1.1.3 executing==1.2.0 @@ -46,7 +47,7 @@ google-auth-oauthlib==1.0.0 google-pasta==0.2.0 grpcio==1.58.0 h11==0.14.0 -h5py==3.9.0 +h5py==3.10.0 icecream==2.1.3 idna==3.4 imageio==2.31.6 @@ -54,12 +55,18 @@ importlib-metadata==6.1.0 ipython==8.17.2 ipywidgets==8.1.1 itsdangerous==2.1.2 +jax==0.4.23 +jaxlib==0.4.23 jedi==0.19.1 Jinja2==3.1.2 joblib==1.3.2 jsonschema==4.17.3 jupyterlab-widgets==3.0.9 -keras +keras==3.0.2 +keras-core==0.1.7 +keras-nightly==3.0.3.dev2024010203 +keras-nlp-nightly==0.7.0.dev2024010203 +keras-tcn @ git+https://github.com/drew2323/keras-tcn.git@4bddb17a02cb2f31c9fe2e8f616b357b1ddb0e11 kiwisolver==1.4.4 libclang==16.0.6 llvmlite==0.39.1 @@ -69,12 +76,12 @@ MarkupSafe==2.1.2 matplotlib==3.8.2 matplotlib-inline==0.1.6 mdurl==0.1.2 -ml-dtypes==0.2.0 -mlroom @ git+https://github.com/drew2323/mlroom.git -keras-tcn @ git+https://github.com/drew2323/keras-tcn.git +ml-dtypes==0.3.1 +mlroom @ git+https://github.com/drew2323/mlroom.git@692900e274c4e0542d945d231645c270fc508437 mplfinance==0.12.10b0 msgpack==1.0.4 mypy-extensions==1.0.0 +namex==0.0.7 newtulipy==0.4.6 numba==0.56.4 numpy==1.23.5 @@ -85,6 +92,7 @@ packaging==23.0 pandas==1.5.3 param==1.13.0 parso==0.8.3 +patsy==0.5.6 pexpect==4.8.0 Pillow==9.4.0 plotly==5.13.1 @@ -111,6 +119,7 @@ python-multipart==0.0.6 pytz==2022.7.1 pytz-deprecation-shim==0.1.0.post0 pyviz-comms==2.2.1 +PyWavelets==1.5.0 PyYAML==6.0 regex==2023.10.3 requests==2.31.0 @@ -128,11 +137,21 @@ sniffio==1.3.0 sseclient-py==1.7.2 stack-data==0.6.3 starlette==0.26.1 +statsmodels==0.14.1 streamlit==1.20.0 structlog==23.1.0 TA-Lib==0.4.28 +tb-nightly==2.16.0a20240102 tenacity==8.2.2 +tensorboard==2.15.1 +tensorboard-data-server==0.7.1 +tensorflow-addons==0.23.0 +tensorflow-estimator==2.15.0 +tensorflow-io-gcs-filesystem==0.34.0 termcolor==2.3.0 +tf-estimator-nightly==2.14.0.dev2023080308 +tf-nightly==2.16.0.dev20240101 +tf_keras-nightly==2.16.0.dev2023123010 threadpoolctl==3.2.0 tinydb==4.7.1 tinydb-serialization==2.1.0 @@ -143,12 +162,13 @@ toolz==0.12.0 tornado==6.2 tqdm==4.65.0 traitlets==5.13.0 +typeguard==2.13.3 typing_extensions==4.5.0 tzdata==2023.2 tzlocal==4.3 urllib3==1.26.14 uvicorn==0.21.1 --e git+https://github.com/drew2323/v2trading.git@523905ece6d99bf48a8952d39ced6a13f3b9a84e#egg=v2realbot +-e git+https://github.com/drew2323/v2trading.git@eff78e8157c44b064c169e80ffa3d0b18cdb3d23#egg=v2realbot validators==0.20.0 wcwidth==0.2.9 webencodings==0.5.1 diff --git a/restart.sh b/restart.sh new file mode 100755 index 0000000..9089fdb --- /dev/null +++ b/restart.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +# file: restart.sh + +# Usage: ./restart.sh [test|prod|all] + +# Define server addresses +TEST_SERVER="david@142.132.188.109" +PROD_SERVER="david@5.161.179.223" + +# Define the remote directory where the script is located +REMOTE_DIR="v2trading" + +# Check for argument +if [ "$#" -ne 1 ]; then + echo "Usage: $0 [test|prod|all]" + exit 1 +fi + +# Function to restart a server +restart_server() { + local server=$1 + echo "Connecting to $server to restart the Python app..." + ssh -t $server "cd $REMOTE_DIR && . ~/.bashrc && ./run.sh restart" # Sourcing .bashrc here + echo "Operation completed on $server." +} + +# Select the server based on the input argument +case $1 in + test) + restart_server $TEST_SERVER + ;; + prod) + restart_server $PROD_SERVER + ;; + all) + restart_server $TEST_SERVER + restart_server $PROD_SERVER + ;; + *) + echo "Invalid argument: $1. Use 'test', 'prod', or 'all'." + exit 1 + ;; +esac +