How to deploy your first app
Learn how to deploy your first application step-by-step using LegionEdge's powerful platform.
How to deploy your first app
Deploying an application can seem daunting at first, but LegionEdge makes it straightforward and efficient. This guide will walk you through the process of deploying your very first app on our platform.
1. Prepare Your Application
Before deploying, make sure your application is ready for production. This means:
- All environment variables are correctly configured.
- Your
package.jsoncontains a build script if necessary. - Dependencies are properly listed.
2. Connect Your Repository
LegionEdge integrates seamlessly with major Git providers like GitHub, GitLab, and Bitbucket.
- Navigate to your dashboard and click on New Project.
- Select your Git provider and authorize LegionEdge to access your repositories.
- Choose the repository you want to deploy.
3. Configure Build Settings
Once your repository is connected, LegionEdge will try to automatically detect your framework and configure the build settings.
- Framework Preset: Verify that the correct framework is selected (e.g., Next.js, React, Express).
- Build Command: Usually
npm run buildoryarn build. - Output Directory: The folder where your built assets are generated (e.g.,
dist,out,.next).
4. Environment Variables
If your app relies on secret keys, database URIs, or API tokens, you need to add them here.
- Click on Environment Variables.
- Enter your key-value pairs.
- Make sure to keep your secrets safe!
5. Deploy
Review your settings and click the Deploy button. LegionEdge will now clone your repository, install dependencies, run the build command, and deploy your application. You can monitor the progress in the build logs.
6. Success!
Once the deployment is complete, you'll be provided with a live URL where you can view your deployed application. Congratulations!
Next Steps
Now that your app is live, you might want to look into:
- Setting up a custom domain
- Configuring CI/CD pipelines
- Monitoring your app's performance
Contributors
LegionEdge Team
Support