Skip to main content

Hosting a Discord bot on Vertra Cloud

A Discord bot runs on Vertra Cloud as a bot-type application: a background process with no exposed HTTP port, restarted automatically when it crashes and streamed live to the dashboard log. Vertra Cloud is a Brazilian application hosting platform (PaaS), and Discord, WhatsApp and Telegram bots are first-class workloads on it — the same containers, snapshots and metrics as any other application. This guide covers both discord.js (JavaScript) and discord.py (Python).

Discord.js (JavaScript)

Structure

package.json

vertracloud.config

Example


Discord.py (Python)

Structure

requirements.txt

vertracloud.config

Example

Deploy

  1. Compress the project into a .zip (folders like node_modules, venv and target are removed automatically) or push it to GitHub.
  2. In the dashboard, click New Project and upload the .zip or paste the repository URL.
  3. In Build, check the runtime (JavaScript or Python), the main file (index.js or main.py) and the memory. Start and build commands are under Advanced settings.
  4. Add your environment variables in Environment.
  5. In Network, leave web publishing off: a bot doesn’t receive incoming traffic and runs in the background on any plan.
  6. Review and deploy. Follow the output in the Logs tab.
The full walkthrough is in First deploy.

Available Versions

Node.js

Python

Notes

  • Bot Type: Always select Bot when creating the application (not Website)
  • Environment variables: Configure DISCORD_TOKEN in the application’s variables
  • Auto-restart: On by default, keeps the bot online in case of disconnection
  • Memory: 256MB is enough for simple bots, 512MB+ for complex ones
  • Logs: Use console.log() (JS) or logging (Python) to monitor in real-time
  • Gateway: Both libraries keep a persistent WebSocket connection to the Discord gateway, so the bot needs no incoming traffic and no web publishing
Last modified on October 31, 2026