Cloud & SDKsource GitHub
Deploy to databricks apps
/deployJe déploierai votre application Databricks en production avec une validation et un contrôle complets.
// contenu du skill
description: "Deploy your Databricks app to production"
Deploy to Databricks Apps
I'll deploy your Databricks app to production with comprehensive validation and monitoring.
What I'll do:
- Validate environment - Check authentication and configuration
- Test locally first - Run app locally to catch issues before deployment
- Check app status - Verify if app exists or needs creation
- Deploy to Databricks - Build, sync, and deploy using proper workflow
- Monitor deployment - Verify successful deployment and provide URL
- Provide next steps - Give you monitoring and debugging information
Deployment Workflow
Step 1: Environment Validation
bash
# Check if .env.local exists and is configured
cat .env.local
# Test Databricks authentication
databricks current-user meStep 2: Local Testing (Critical)
bash
# Test app locally first to catch issues
./run_app_local.shStep 3: App Status Check
bash
# Check if app exists
./app_status.sh
# Get app details
databricks apps get "$DATABRICKS_APP_NAME"Step 4: Deployment Decision
Based on app status:
- If app exists: Deploy with
./deploy.sh - If app doesn't exist: Ask if you want to create it
- If you want to create: Use
./deploy.sh --create
Step 5: Deploy
bash
# Deploy (with creation if needed)
./deploy.sh --create --verboseStep 6: Deployment Verification
bash
# Check final status
./app_status.sh
# Verify app is running
databricks apps get "$DATABRICKS_APP_NAME"Deployment Options
Standard Deployment:
bash
./deploy.shCreate New App:
bash
./deploy.sh --createVerbose Deployment:
bash
./deploy.sh --verboseWhat Happens During Deployment
- Authentication - Validates Databricks credentials
- App Creation - Creates app if using
--createand doesn't exist - Frontend Build - Builds React app for production
- Requirements Generation - Creates requirements.txt from pyproject.toml
- Workspace Sync - Uploads source code to Databricks workspace
- App Deployment - Deploys via Databricks CLI
- Verification - Confirms successful deployment
Monitoring Your Deployment
Check App Status:
bash
./app_status.shView Deployment Logs:
- Visit your app URL +
/logzin browser - Requires OAuth authentication
- Cannot be accessed via curl
Debug Deployment Issues:
bash
# Get verbose status
./app_status.sh --verbose
# Check workspace files
databricks workspace list "$DBA_SOURCE_CODE_PATH"Common Deployment Issues
Authentication Problems:
- Check
.env.localconfiguration - Test with
databricks current-user me - Reconfigure with
./setup.sh
App Creation Issues:
- Verify you have app creation permissions
- Check if app name is available
- Use
./deploy.sh --createexplicitly
Build/Import Errors:
- Test locally first with
./run_app_local.sh - Check TypeScript compilation
- Verify all dependencies are installed
Deployment Failures:
- Check app logs at URL +
/logz - Use
./app_status.sh --verbosefor details - Verify workspace file sync
Success Criteria
Deployment is successful when:
- ✅ App status shows "RUNNING"
- ✅ App URL returns 200 OK
- ✅ No errors in
/logzendpoint - ✅ App functionality works as expected
Next Steps After Deployment
- Test your app at the provided URL
- Monitor logs via
/logzendpoint - **Use
/status** to check health regularly - **Use
/debug** if issues arise - Iterate and deploy as needed
Your app is now live! 🚀
// source originale publique
databricks-solutions/custom-mcp-databricks-app/.claude/commands/deploy.md
Licence : Other. Consultez le dépôt avant toute réutilisation.
Projet indépendant, non affilié à Anthropic. Ce skill reste la propriété de son auteur original.
// similaires