Skip to content

Commit be439c1

Browse files
committed
fix: remove env
1 parent 6c328da commit be439c1

4 files changed

Lines changed: 3 additions & 15 deletions

File tree

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
2221
ENV TZ="Asia/Shanghai"
2322

2423
EXPOSE 2233

Dockerfile-GPU

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
1918
ENV TZ="Asia/Shanghai"
2019

2120
EXPOSE 2233

record.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ host=0.0.0.0
99
port=2233
1010

1111
kill -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 &
1313
if [ $? -eq 0 ]; then
1414
echo "success"
1515
else

upload.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
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
122
kill -9 $(ps aux | grep 'src.burn.scan' | grep -v grep | awk '{print $2}')
133
kill -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
188
if [ $? -eq 0 ]; then
199
echo "Success! Please ignore the 'kill: usage....' if it displays"

0 commit comments

Comments
 (0)