Tachostand in Graph hizugefügt
This commit is contained in:
@@ -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 "================================================"
|
||||
|
||||
Reference in New Issue
Block a user