Skip to main content

Deploy Guides

Learn how to host your application on Vertra Cloud with language and framework-specific guides. Each tutorial covers project structure, necessary configuration and the complete deployment process.

Node.js

Node.js applications with or without framework.

Python

Python scripts, bots and APIs.

Express.js

REST APIs with Express.js.

Fastify

High-performance APIs with Fastify.

Next.js

React applications with SSR and SSG.

Go

APIs and services in Go.

Static Sites

HTML, CSS and pure JavaScript.

Discord Bots

Bots for Discord with discord.js or discord.py.

Common Structure

Regardless of the framework chosen, every deployment on Vertra Cloud follows the same structure:
1

Prepare the project

Organize files and configure the main file and startup command.
2

Configure (optional)

Create the vertracloud.config file with desired settings.
3

Upload

Send the code via ZIP, GitHub or VSCode extension.
4

Verify

Monitor logs and application status in the dashboard.

vertracloud.config File

The configuration file is optional but recommended. It must be at the project root:
MAIN=index.js
START=npm start
SUBDOMAIN=my-app
VERSION=recommended
MEMORY=512
AUTORESTART=true
FieldDescriptionRequired
MAINApplication’s main fileYes
STARTCustom startup commandNo
SUBDOMAINCustom subdomainNo
VERSIONRuntime version (recommended, latest)No
MEMORYMemory in MBNo
AUTORESTARTAuto-restart on crashNo

Application Port

Web applications must listen on the port defined by the PORT environment variable. The platform automatically injects this variable into the container.
const port = process.env.PORT || 80;
app.listen(port, '0.0.0.0', () => {
  console.log(`Server running on port ${port}`);
});
Always use 0.0.0.0 as host instead of localhost or 127.0.0.1. Inside the container, binding must be on all interfaces for external traffic to reach the application.