Deployment10 min read
Deploy Your First App
Deploy a sample application to understand the Oxaploy deployment pipeline from repository to live URL.
1.Prepare Your Repository
Ensure your Git repository is ready for Oxaploy deployment.
- Push your code to GitHub, GitLab, or Bitbucket
- Ensure package.json (Node.js) or equivalent exists
- Verify build and start commands work locally
- Commit and push to your target branch (default: main)
2.Configure Build and Start Commands
Tell Oxaploy how to build and run your application.
- In New App form, select your server
- Enter repository URL and branch
- Oxaploy auto-detects framework — verify detection
- Set build command (e.g., npm run build, go build, pip install -r requirements.txt)
- Set start command (e.g., npm start, ./myapp, gunicorn app:app)
- Set port if non-standard (default: 3000 for Node, 8000 for Python/Go)
3.Set Environment Variables
Configure secrets and config for your production environment.
- In app settings, go to Environment Variables
- Add each variable: KEY=VALUE
- Mark sensitive values as Secret (encrypted at rest)
- Common variables: DATABASE_URL, JWT_SECRET, API_KEYS
- Reference in code: process.env.KEY (Node) or os.getenv('KEY') (Python)
4.Deploy and Verify
Launch your deployment and confirm everything works.
- Click Deploy — watch real-time build logs
- Build phase: dependencies install, code compiles
- Deploy phase: container starts, health checks run
- Green checkmark = deployment successful
- Click app URL to verify live application
- Check Metrics for CPU, RAM, requests
- Add custom domain and enable SSL in Domains tab