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
- Via Dashboard
- Via GitHub
- Via VSCode
- Execute
bundle installlocally - Exclude
vendorand.bundlefolders from the project - Compress into a ZIP file
- Access Dashboard → New Project → Application
- Select Ruby language and upload
- Configure memory (256MB for simple applications, 512MB+ for larger applications)
- 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
putsorSTDOUT.putsfor 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.0on port$PORT