New comments and actions
All checks were successful
Deploy / deploy (push) Successful in 26s

This commit is contained in:
elijah 2024-11-05 15:58:00 +01:00
parent a10fb0fb99
commit 7ba6fc7ac7
2 changed files with 6 additions and 2 deletions

View File

@ -27,6 +27,10 @@ jobs:
HOST1: ${{ secrets.HOST1 }} HOST1: ${{ secrets.HOST1 }}
USER: ${{ secrets.USER }} USER: ${{ secrets.USER }}
run: | run: |
echo "Deploying..."
echo "Removing old files..."
ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*' ssh $USER@$HOST1 'rm -rf /var/www/elia.network/html/*'
echo "Copying new files..."
scp -r . $USER@$HOST1:/var/www/elia.network/html scp -r . $USER@$HOST1:/var/www/elia.network/html
echo "Deployment done!"
ssh $USER@$HOST1 'rm -r /var/www/elia.network/html/.git*' ssh $USER@$HOST1 'rm -r /var/www/elia.network/html/.git*'

View File

@ -1,4 +1,4 @@
// animation speeds cause why not // animation speeds
const TYPING_SPEED = 50; const TYPING_SPEED = 50;
const ERASE_SPEED = 70; const ERASE_SPEED = 70;
const STATUS_UPDATE_INTERVAL = 60000; // 1min updates const STATUS_UPDATE_INTERVAL = 60000; // 1min updates
@ -84,7 +84,7 @@ function updateClientInfo() {
if (!clientInfo) { if (!clientInfo) {
throw new Error("X-Client-Info header not present"); throw new Error("X-Client-Info header not present");
} }
// this solves the weird encoding issue with µ
const cleanClientInfo = clientInfo const cleanClientInfo = clientInfo
.replace(/\u00C2\u00B5s/g, "µs") .replace(/\u00C2\u00B5s/g, "µs")
.replace(/µs/g, "µs") .replace(/µs/g, "µs")