Deploy
Learn how to deploy your application using Sealos DevBox and App Launchpad
After releasing your application as an OCI image, the next step is to deploy it to Sealos Cloud for production use. This guide will walk you through the deployment process using App Launchpad.
Initiate Deployment
Access Project Details
- Go to the Sealos Devbox List in your Sealos Desktop.
- Find your project and click on the "Detail" button on the right side of your project's row.
Select Release Version
In your project's details page:
- Locate the "Version" section.
- Find the release you want to deploy.
- Click the "Deploy" button in the "Operation" column next to your chosen release.
Navigate to App Launchpad
Clicking "Deploy" will redirect you to the App Launchpad application within Sealos.
Configure Deployment Settings
In the App Launchpad application, you'll need to configure your application settings:
Set Resource Limits
Configure the resources for your application:
- CPU allocation
- Memory allocation
- Storage requirements
Configure Environment Variables
If your application requires specific environment variables:
- Add each variable with its corresponding value.
- Ensure sensitive information is properly secured.
Set Up Volumes (if needed)
If your application requires persistent storage:
- Configure any necessary volumes.
- Specify mount paths for these volumes.
Network Configuration
Set up your application's network configuration:
- Specify the container port your application listens on.
- Configure any additional ports if required.
Review Settings
Carefully review all the settings you've configured to ensure they match your application's requirements.
Deploy Your Application
Initiate Deployment
Once you've configured all necessary settings, click the "Deploy Application" button in the top right corner to start the deployment process.
Monitor Deployment Progress
You'll be taken to the application details view within App Launchpad. Here, you can monitor the deployment progress.
Verify Deployment
Once the status changes to "Running", your application is successfully deployed.
Access Your Deployed Application
- Look for the "Public Address" in the application details.
- Click on this address to open your deployed application in a new browser tab.
Remember that you can always update your application by creating a new release in Devbox and repeating this deployment process with the new version using App Launchpad.
Conclusion
Congratulations! You've now completed the fundamental workflow of developing and deploying an application using Sealos DevBox. Let's recap the key steps we've covered:
-
Create a Project: We started by setting up a new project in Sealos DevBox, configuring the runtime and network settings.
-
Develop: We connected to our development environment using Cursor IDE and wrote our application code.
-
Release: We prepared our application for release, created an OCI image, and versioned our project.
-
Deploy: Finally, we deployed our application to Sealos Cloud using App Launchpad, making it accessible to users.
This workflow demonstrates the power and flexibility of Sealos DevBox in streamlining the entire development process, from initial setup to final deployment. By leveraging cloud-based development environments and containerization, Sealos DevBox enables developers to create, test, and deploy applications more efficiently than ever before.
As you continue to use Sealos DevBox, you'll discover more advanced features and optimizations that can further enhance your development workflow.
Happy coding, and may your deployments always be smooth and successful!