This commit is contained in:
xyj 2023-12-07 15:51:37 +08:00
parent 1b4e49f992
commit b77441e11b
25 changed files with 7 additions and 15 deletions

View File

@ -3,8 +3,8 @@ set -e
# git更新 # git更新
git pull origin master --force git pull origin master --force
# 配置文件复制到supervisor管理 # 配置文件复制到supervisor管理
cp -r conf/*.conf /etc/supervisor/conf.d/ cp -r ../conf/common/*.conf /etc/supervisor/conf.d/
cp -r var_conf/push_stream_ + $device_name cp -r ../conf/var/$device_name/*.conf /etc/supervisor/conf.d/
# 更新配置文件 # 更新配置文件
supervisorctl reread supervisorctl reread
supervisorctl update supervisorctl update

3
bash/test.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo $device_name
cp -r ../conf/var/$device_name/*.conf /etc/supervisor/conf.d/

View File

View File

@ -1,12 +1,3 @@
import serial
import time
import struct
import json
import paho.mqtt.client as mqtt
from api import add
from db.models.log_data_model import LOT_DATA
import subprocess import subprocess
import time import time
import paho.mqtt.client as mqtt import paho.mqtt.client as mqtt

View File

@ -2,7 +2,7 @@ import time
import serial import serial
from api import add from db.api import add
from db.models.log_data_model import LOT_DATA from db.models.log_data_model import LOT_DATA
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -5,7 +5,7 @@ import time
import serial import serial
import paho.mqtt.client as mqtt import paho.mqtt.client as mqtt
from api import add from db.api import add
from db.models.log_data_model import LOT_DATA from db.models.log_data_model import LOT_DATA

View File

@ -1,2 +0,0 @@
#!/bin/bash
echo $device_name