Skip to content

Commit

Permalink
feat: update linux installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
debemdeboas committed Feb 28, 2024
1 parent 3036fcf commit 647973b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions TuyaAPI.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
Type=simple
ExecStart=/www/tuya-api/tuya-api
WorkingDirectory=/www/tuya-api

[Install]
WantedBy=multi-user.target
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

sudo cp dist/TuyaAPI.service /etc/systemd/system/
sudo mkdir -p /www/tuya-api
go build . && sudo cp tuya-api .env /www/tuya-api/

sudo cp TuyaAPI.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable TuyaAPI
sudo systemctl start TuyaAPI

0 comments on commit 647973b

Please sign in to comment.