Tachostand in Graph hizugefügt

This commit is contained in:
2026-02-20 11:25:26 +01:00
parent 2941354c77
commit a79c55cb14
10 changed files with 331 additions and 525 deletions

View File

@@ -15,7 +15,7 @@ echo "================================================"
# Step 1: Build Flutter Web
echo "📦 Building Flutter web release..."
flutter build web --release
flutter build web --release --no-wasm-dry-run
if [ $? -ne 0 ]; then
echo "❌ Build failed!"
@@ -36,18 +36,29 @@ echo "✅ Local webserver folder updated!"
# Step 3: Copy to server
echo "📤 Copying to server $SERVER_IP..."
sudo scp -r webserver $SERVER_USER@$SERVER_IP:$SERVER_PATH
sudo scp -r webserver/* $SERVER_USER@$SERVER_IP:$SERVER_PATH/
if [ $? -ne 0 ]; then
echo "❌ Server copy failed!"
exit 1
fi
echo "✅ Files copied to server!"
# Step 4: Restart webserver
echo "🔄 Restarting webserver container..."
ssh $SERVER_USER@$SERVER_IP "cd $SERVER_PATH/installDocker && ./deploy.sh"
if [ $? -ne 0 ]; then
echo "⚠️ Warning: Server restart failed or deploy.sh not found"
echo " You may need to manually restart the webserver"
else
echo "✅ Webserver restarted!"
fi
echo ""
echo "✅ Update complete!"
echo "================================================"
echo "Next steps on the server:"
echo " ssh $SERVER_USER@$SERVER_IP"
echo " cd $SERVER_PATH/installDocker"
echo " ./deploy.sh"
echo "Your app should now be updated at:"
echo " http://tank.joshihomeserver.ipv64.net"
echo "================================================"