Deploy by Rsync

The deploy by rsync is our most robust way of deploying Municipio, with benefits like deleting unknown files and environment testing by a sophisticated preflight process.

The preflight is intended to ensure a successful deployment as early as possible. This robust approach offers several advantages:

  • Clean Deployments: Rsync’s ability to delete unknown files ensures a clean and consistent deployment environment. This prevents conflicts and ensures only the intended files are present on the server. It’s like a fresh start with each deployment, minimizing the risk of lingering issues. This enshures that any arbitrary code injected by unathorized entities will be removed in each deploy, keeping the application clean and secure from threats.

  • Early Issue Detection: The sophisticated preflight process acts as a crucial gatekeeper. By performing a series of checks before the actual deployment begins, we can catch potential problems early. This proactive approach saves valuable time and resources by preventing failed deployments and minimizing downtime.

  • Environment Consistency: The preflight checks not only validate the deployment package itself but also assess the target environment. This ensures compatibility and identifies any discrepancies that might hinder a successful deployment. This helps maintain consistency across different environments.

  • Reduced Downtime: By identifying and resolving potential issues during the preflight stage, we significantly reduce the risk of deployment failures and subsequent downtime. This translates to a smoother experience for our users.

  • Increased Confidence: The combination of rsync’s robust file transfer capabilities and the comprehensive preflight process gives us greater confidence in each deployment. We know that the deployment is likely to succeed and that the target environment is ready.

  • Simplified Rollbacks: While not the primary focus, the clean deployments facilitated by rsync and the early error detection of the preflight process make rollbacks, if necessary, significantly easier and faster.

In summary, the rsync deployment method, coupled with its comprehensive preflight checks, offers a powerful and reliable way to deploy Municipio. It prioritizes clean deployments, early issue detection, and environment consistency, resulting in reduced downtime, increased confidence, and a smoother overall deployment process. This approach allows us to deliver updates to our users quickly and efficiently, with minimal risk.

Download full resolution variant

What if the server is not publicly avabile?

If you cant access the target server by SSH; you may setup a bastion host to store the build. Sync between the public resource, and the internal can be done with this repository.

SNT
Sebastian Nordqvist Thulin