What is a deployment?
This page is designed to provide you with a comprehensive understanding of what deployments are and how they function within our platform.
What is a Deployment?
In the context of Customary, a deployment refers to the process of taking your code from a repository and making it live on a server. It’s the act of moving your application from a development environment to a production environment where it can be accessed by end users.
How Deployments Work on Customary
When you create a deployment on Customary, you’re essentially instructing our platform to monitor a specific branch of your repository. Whenever you commit code to that branch, Customary automatically pulls the updated code, prepares it for the production environment, and deploys it on a server. This process is automated and seamless, requiring minimal intervention from your end.
Components of a Deployment
A deployment on Customary consists of several components:
-
Repository and Branch: The source of your code. You can select any repository and branch in your GitHub account.
-
Runtime: The environment in which your code runs. Customary currently supports Django and Docker runtimes.
-
Instance Size: The amount of CPU and RAM allocated to your deployment. This determines the performance of your deployed code.
-
Database (Optional): If your application requires a database, you can create and attach a PostgreSQL database to your deployment.
-
Storage Volume (Optional): A persistent storage space that can be attached to your deployment. Unlike the regular deployment storage, this storage persists between restarts and deployments.
Deployment Dashboard
Once your code is deployed, you can monitor and manage your deployments from the Deployment Dashboard. Here, you can view the status of your deployments, edit settings, and more. The dashboard provides a centralized location for managing all aspects of your deployments.
Scalability and Failover
Customary deployments are designed with scalability and failover in mind. You can specify the maximum number of replicas for scaling and failover during the deployment process. This ensures that your application can handle increased load and provides redundancy in case of failure. During beta, this feature is not available, and we handle the failover for you, but manually settings will be available soon.
Persistent Storage with Storage Volumes
Storage Volumes on Customary provide a way to maintain persistent storage between deployments and restarts. This is particularly useful for applications that need to store user data or other information that needs to persist across different deployment cycles. Each deployment has its own storage to store the code and data, but that will be reset between each deployment and reset. Storage Volumes provide a shared storage space that can be accessed by multiple deployments, is highly available, and persists between deployments.
Conclusion
Deployments on Customary are designed to be straightforward and user-friendly, abstracting away the complexities of traditional deployment processes. By understanding what deployments are and how they work, you can make the most of Customary’s platform and deploy your code with ease and efficiency.h Customary.