Compare commits

..

No commits in common. "a53c12b02c1cfcc0989a131448ea61f9cfb23b7f" and "9dd0045c4bc18c9d5a1929f235b0229d610fce2d" have entirely different histories.

2 changed files with 1 additions and 20 deletions

View File

@ -65,16 +65,10 @@ struct DeviceResponse {
}
self.event = event
guard let data = buffer.getSlice(at: 1, length: Message.length) else {
log("\(request): Insufficient data received from device (expected \(Message.length + 1), got \(buffer.readableBytes))")
self.response = nil
return
}
guard let message = Message(decodeFrom: data) else {
log("\(request): Failed to decode message received from device")
self.response = nil
return
}
self.response = message
self.response = Message(decodeFrom: data)
}
/**

View File

@ -1,13 +0,0 @@
echo "[1/7] Stopping server..."
sudo supervisorctl stop sesame
echo "[2/7] Changing permissions..."
sudo chown -R pi:pi .
echo "[3/7] Pulling changes..."
git pull
echo "[4/7] Building project..."
swift build -c release
echo "[5/7] Restoring permissions..."
sudo chown -R www-data:www-data .
echo "[6/7] Starting server..."
sudo supervisorctl start sesame
echo "[7/7] Done"