How to deploy a serverless application

Learn how to deploy your code automatically from Git or via Docker images, without managing the underlying infrastructure.

ServerlessUpdated 1 day ago · 6 min read

Phase 1: Project Creation

Before deploying an application, you need to create a project to house it. Projects help you organize multiple environments (like staging and production) under one logical grouping.

  • Navigate to the Serverless section on your TechBeaver Cloud dashboard.
  • Click the Create Project button.
  • Provide a Project Name, select your preferred data center Region, and optionally add a description.
  • Click Create Project to proceed.

Phase 2: Choose a Deployment Method

Once inside your new project, click on Deploy New App. You will be prompted to connect your application source. TechBeaver Cloud supports two primary methods:

Option A: Deploy from Git (Recommended)

This method connects directly to your version control provider (GitHub, GitLab, or Bitbucket).

  • Authorize TechBeaver Cloud to access your Git provider.
  • Select the Repository you wish to deploy.
  • Select the Branch (e.g., main or production) you want us to monitor.

Continuous Deployment

When you connect via Git, TechBeaver sets up automatic deployments. Every time you push new code to your selected branch, your app will rebuild and deploy instantly.

Option B: Deploy from an Existing Docker Image

If your CI/CD pipeline already builds containers, you can deploy a pre-built image directly. Provide your Docker Image URL and, if using a private registry, your registry authentication credentials.

Phase 3: Configure Your Application

Now, let's configure how your application will run on our infrastructure.

1. Basic Details & Pricing Plan

Give your application a name and choose an Instance Plan. Plans scale with your resource needs, and the current prices, in your currency, are on the pricing page. Yearly billing gives you one month free.

2. Framework & Runtime

You must tell our servers how to build your application. You have two choices:

Auto-Detect vs. Dockerfile

If you choose Auto-Detect, our system will scan your code (e.g., finding a package.json or requirements.txt) and automatically figure out how to build it without any extra configuration.

A Dockerfile is a text document containing specific commands to assemble your app's environment. If your app requires complex, custom system dependencies, you should include a Dockerfile in your repository and select the Dockerfile option.

3. Environment Variables

If your app connects to databases or uses API keys, do not hardcode them! Add them securely in the Environment Variables section. You can enter them one-by-one via the form, or paste them using the Raw ENV text editor format.

Phase 4: Deploy & Go Live

Review your settings and click Deploy.

TechBeaver Cloud will begin the build process, provisioning resources, and routing traffic. Once the process is complete and the status turns green, you will be provided with a secure, public Deployment URL where your app is live on the internet!

Ready to launch your app?