This guide takes you from signup to your first live deployment in under 5 minutes.
Prerequisites
Before you begin, make sure you have:- A Git repository (GitHub or any public Git URL)
- For GitHub users: A GitHub account for OAuth authentication
- For Node.js apps: Your application should listen on a configurable port via environment variables
Step 1: Create Your Account
DeployHub offers two signup methods:Sign up with GitHub (Recommended)
Navigate to the signup page and click “Continue with GitHub”.This will:
- Authenticate you via GitHub OAuth
- Automatically access your repositories
- Generate access and refresh tokens
- Redirect you to the dashboard
GitHub authentication stores your
githubAccessToken for repository access and automatic deployments.Step 2: Login and Get Access Token
After signup, authenticate to receive your access token.The API returns both
AccessToken and refreshToken as HTTP-only cookies. The accessToken is also returned in the response body for manual storage.Step 3: Get Your Repositories (GitHub Users)
If you signed up with GitHub, fetch your accessible repositories:Non-GitHub users
Non-GitHub users
If you signed up with email, you can use any public Git repository URL directly in the deployment step.
Step 4: Choose Your Plan
DeployHub offers two plans:Free Plan
- 512MB RAM
- 0.1 vCPU
- 2,000 requests/day
- deployhub.online subdomain
- ₹0 forever
Pro Plan
- 2GB RAM
- 1 vCPU
- 1,00,000 requests/day
- Custom domain support
- ₹799/month (discounts available)
Initialize Your Plan
Pro Plan Discounts
Pro Plan Discounts
| Duration | Discount | Effective Price/Month |
|---|---|---|
| 1 month | 0% | ₹799 |
| 3 months | 4% | ₹767 |
| 6 months | 8% | ₹735 |
| 12 months | 10% | ₹719 |
| 24 months | 15% | ₹679 |
Step 5: Deploy Your Project
Now you’re ready to deploy! DeployHub supports static sites and Node.js applications.- Static Site (React, Vue, etc.)
- Node.js Application
- Monorepo / Subfolder
Deploy a static site like React, Vue, or any framework that builds to HTML/CSS/JS:Required Fields:
projectId: From Step 4 (plan initialization)name: Display name for your projectcodeLink: GitHub repository URL or public Git URLprojectType:"static"for static sitesbranchname: Git branch to deploy (e.g., “main”, “master”)isFolder:falseif project is at repo root,trueif in a subfolderbuildCommand: Command to build your site (e.g., “npm run build”, “yarn build”)publishDir: Directory containing built files (e.g., “dist”, “build”, “public”)
env: Environment variables as key-value pairsfolderName: Required ifisFolder: true(e.g., “packages/frontend”)
Your deployment is now queued! The build process typically takes 1-3 minutes depending on your project size.
Step 6: Access Your Deployment
Once the build completes, your project will be live at:https://my-portfolio-x8k2j4.deployhub.online
Check Build Status
Monitor your deployment progress:queued: Build is waiting to startbuilding: Build is in progresssuccess: Build completed successfully, site is livefailed: Build failed (check logs for errors)
Next Steps
Configure Settings
Update build commands, environment variables, and project settings
Custom Domains
Add your custom domain to your Pro plan project
View Build History
Monitor build history, logs, and deployment status
Redeploy
Trigger manual redeployments or set up webhooks
Common Deployment Examples
React with Vite
React with Vite
Next.js Static Export
Next.js Static Export
next.config.js includes:Vue.js
Vue.js
Express.js API
Express.js API
Nest.js Application
Nest.js Application
Troubleshooting
Build Failed
Build Failed
Common causes:
- Incorrect
buildCommandorpublishDir - Missing dependencies in
package.json - Build script errors
Node.js App Not Starting
Node.js App Not Starting
Common causes:
- App not listening on the correct port
- Missing environment variables
- Incorrect
startCommand
401 Unauthorized
401 Unauthorized
Repository Not Found (Private Repos)
Repository Not Found (Private Repos)
If using a private repository:
- You must authenticate via GitHub OAuth
- DeployHub uses your stored
githubAccessTokento access private repos - Public Git URLs only work for public repositories
API Reference
For complete API documentation, see:Congratulations! You’ve successfully deployed your first project on DeployHub. Your site is now live and accessible to the world.