Requirements
- Node.js installed locally
- Account on Vertra Cloud
Project Structure
Configuration
package.json
vertracloud.config
Complete Example
Deploy
- Dashboard
- CLI
- VS Code
- Compress the project into a
.zip(folders likenode_modules,venvandtargetare removed automatically) or push it to GitHub. - In the dashboard, click New Project and upload the
.zipor paste the repository URL. - In Build, check the runtime (JavaScript), the main file (
index.js) and the memory. Start and build commands are under Advanced settings. - Add your environment variables in Environment.
- In Network, turn on web publishing so the app gets a
*.vertraweb.appaddress (512 MB of memory or more). The app must listen on port 80. - Review and deploy. Follow the output in the Logs tab.
Available Versions
Connecting to a Database
Vertra databases require TLS and the client certificate. Put the three files from the databaseβs Certificates tab in your project and read them when opening the pool:Notes
- For TypeScript applications, compile before deployment and point
MAINto the compiled.jsfile - Use environment variables for database configuration and secrets
- Auto-restart is on by default for every application
- Configure a
/healthendpoint for monitoring