FIX: Fix deploy config

This commit is contained in:
이수준 2023-11-29 13:43:22 +09:00
parent cd6bf4e74f
commit 5a61e459d4
2 changed files with 5 additions and 2 deletions

3
certs/ID.json Normal file
View File

@ -0,0 +1,3 @@
{
"appId": "4ad379bb-0a97-45da-af44-f090aee3b40d"
}

View File

@ -3,8 +3,8 @@
set -e
sudo pip install paho-mqtt
sudo sed -i "s/appName/$1/g" /usr/local/sdt/app/$1/example-app.service
sudo cp /usr/local/sdt/app/$1/example-app.service /etc/systemd/system/$1.service
sudo sed -i "s/appName/$1_$2/g" /usr/local/sdt/app/$1_$2/example-app.service
sudo cp /usr/local/sdt/app/$1_$2/example-app.service /etc/systemd/system/$1.service
sudo systemctl start $1
sudo systemctl enable $1