Requirements
- Ruby 3.3+ 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
- 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 (Ruby), the main file (
app.rb) 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
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