Migration·
Migrating to DeployHub
How to migrate your existing applications to DeployHub
Migrating Your Applications to DeployHub
Migrating to DeployHub is straightforward. Here's a step-by-step guide.
Step 1: Prepare Your Repository
Ensure your repository is ready for deployment:
- Make sure your build command is configured correctly
- Test your build locally
- Ensure all dependencies are in package.json
Step 2: Create a New Project
- Go to deployhub.com/signup
- Click "New Project"
- Connect your repository
- Configure build settings
Step 3: Configure Environment Variables
Add your environment variables in the project settings. This includes:
- API keys
- Database connections
- Third-party service credentials
Step 4: Test with Preview Deployment
Before migrating traffic, create a preview deployment to test:
- Push a test branch
- Verify the deployment works
- Test all functionality
Step 5: Add Custom Domain
If you're migrating from another provider:
- Add your domain to DeployHub
- Update DNS records (keep TTL low during migration)
- Verify SSL certificate is provisioned
Step 6: Migrate Traffic
Once everything is tested:
- Update DNS records to point to DeployHub
- Monitor traffic during migration
- Keep old deployment running for a few days as backup
Step 7: Verify and Optimize
After migration:
- Check analytics for any issues
- Optimize performance settings
- Set up monitoring alerts
Framework Specific Tips
Next.js
- Ensure
next.config.jshas correct output settings - Use
output: 'standalone'for optimal performance
Nuxt
- Use
nuxt buildas the build command - Configure runtimeConfig for environment variables
Gatsby
- Build command:
gatsby build - Output directory:
public
Migrating to DeployHub is designed to be seamless. If you need help, our support team is available!