update
This commit is contained in:
parent
1b4e49f992
commit
b77441e11b
|
@ -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
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo $device_name
|
||||||
|
cp -r ../conf/var/$device_name/*.conf /etc/supervisor/conf.d/
|
|
@ -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
|
|
@ -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__':
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue