Skip to main content

Requirements

  • Ruby 3.2+ installed locally
  • Bundler for dependency management
  • Account on Vertra Cloud

Project Structure

Configuration

Gemfile

The platform automatically runs bundle install. Do not include the vendor folder in the upload.

vertracloud.config

Example: Sinatra Application

app.rb

Deploy

  1. Execute bundle install locally
  2. Exclude vendor and .bundle folders from the project
  3. Compress into a ZIP file
  4. Access Dashboard → New Project → Application
  5. Select Ruby language and upload
  6. Configure memory (256MB for simple applications, 512MB+ for larger applications)
  7. Click “Create Application”

Available Versions

Notes

  • Dependencies: Use Bundler to manage gems
  • Environment variables: Access via ENV['KEY']
  • Database: Configure credentials as environment variables
  • Logs: Use puts or STDOUT.puts for logs that appear in dashboard
  • GIL: Ruby uses the Global Interpreter Lock, consider multiple processes for I/O intensive work
  • Listen on 0.0.0.0 on port $PORT