Skip to main content
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:
1

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.
2

Sign up with Email

Alternatively, create an account with email:Step 1: Initialize Registration
Response:
Password must be at least 8 characters and include:
  • Uppercase letter
  • Lowercase letter
  • Number
  • Special character (@$!%*?&)
Step 2: Verify with OTPCheck your email for a 6-digit OTP code (expires in 10 minutes).
Response:

Step 2: Login and Get Access Token

After signup, authenticate to receive your access token.
Response:
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:
Response:
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

Free Plan Response:
Pro Plan Response:
Prices are in INR. Payment processed via Razorpay.
For Pro plan, you must complete the Razorpay payment flow and verify the payment before proceeding to deployment.

Step 5: Deploy Your Project

Now you’re ready to deploy! DeployHub supports static sites and Node.js applications.
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 project
  • codeLink: GitHub repository URL or public Git URL
  • projectType: "static" for static sites
  • branchname: Git branch to deploy (e.g., “main”, “master”)
  • isFolder: false if project is at repo root, true if in a subfolder
  • buildCommand: Command to build your site (e.g., “npm run build”, “yarn build”)
  • publishDir: Directory containing built files (e.g., “dist”, “build”, “public”)
Optional Fields:
  • env: Environment variables as key-value pairs
  • folderName: Required if isFolder: true (e.g., “packages/frontend”)
Deployment Response:
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:
For example: https://my-portfolio-x8k2j4.deployhub.online

Check Build Status

Monitor your deployment progress:
Response:
Build Statuses:
  • queued: Build is waiting to start
  • building: Build is in progress
  • success: Build completed successfully, site is live
  • failed: 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

Make sure your next.config.js includes:

Troubleshooting

Common causes:
  • Incorrect buildCommand or publishDir
  • Missing dependencies in package.json
  • Build script errors
Solution: Check build logs via:
Common causes:
  • App not listening on the correct port
  • Missing environment variables
  • Incorrect startCommand
Solution: Ensure your app uses the port you specified:
Your access token may have expired. Refresh it:
If using a private repository:
  • You must authenticate via GitHub OAuth
  • DeployHub uses your stored githubAccessToken to 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.