File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ RUN apt-get update && apt-get install -y \
1818 && apt-get clean \
1919 && rm -rf /var/lib/apt/lists/*
2020
21- ENV BILIVE_PATH=/app
2221ENV TZ="Asia/Shanghai"
2322
2423EXPOSE 2233
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ RUN apt-get update && apt-get install -y python3.10 python3-pip python3.10-venv
1515 && python -m pip install --upgrade pip \
1616 && pip install --no-cache-dir -r requirements.txt
1717
18- ENV BILIVE_PATH=/app
1918ENV TZ="Asia/Shanghai"
2019
2120EXPOSE 2233
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ host=0.0.0.0
99port=2233
1010
1111kill -9 $( ps aux | grep ' [b]lrec' | awk ' {print $2}' )
12- nohup blrec -c $config --open --host $host --port $port > $BILIVE_PATH /logs/runtime/blrec-$( date +%Y%m%d-%H%M%S) .log 2>&1 &
12+ nohup blrec -c $config --open --host $host --port $port > . /logs/runtime/blrec-$( date +%Y%m%d-%H%M%S) .log 2>&1 &
1313if [ $? -eq 0 ]; then
1414 echo " success"
1515else
Original file line number Diff line number Diff line change 1- #! /bin/bash
2-
3- # Query the project path
4- CURRENT_PATH=$( pwd)
5- # Export the project path to the .bashrc file for the current user using the bash shell
6- echo " export BILIVE_PATH=$CURRENT_PATH # This for timerring/bilive project path" >> ~ /.bashrc
7- # Make the changes to the .bashrc file immediately effective
8- echo " Have set the project path $CURRENT_PATH to .bashrc for the current user."
9- source ~ /.bashrc
10-
111# kill the previous scan and upload process
122kill -9 $( ps aux | grep ' src.burn.scan' | grep -v grep | awk ' {print $2}' )
133kill -9 $( ps aux | grep ' [u]pload' | awk ' {print $2}' )
144# start new process
15- nohup python -m src.burn.scan > $BILIVE_PATH /logs/runtime/scan-$( date +%Y%m%d-%H%M%S) .log 2>&1 &
16- nohup python -m src.upload.upload > $BILIVE_PATH /logs/runtime/upload-$( date +%Y%m%d-%H%M%S) .log 2>&1 &
5+ nohup python -m src.burn.scan > . /logs/runtime/scan-$( date +%Y%m%d-%H%M%S) .log 2>&1 &
6+ nohup python -m src.upload.upload > . /logs/runtime/upload-$( date +%Y%m%d-%H%M%S) .log 2>&1 &
177# Check if the last command was successful
188if [ $? -eq 0 ]; then
199 echo " Success! Please ignore the 'kill: usage....' if it displays"
You can’t perform that action at this time.
0 commit comments