Ruby (Sinatra) app template — z3k platform
Find a file Use this template
Arthur Zinck 1948882dc7
Some checks failed
build-image / build (push) Failing after 1s
ci: preview build on pull requests
2026-07-27 11:51:38 +00:00
.forgejo/workflows ci: preview build on pull requests 2026-07-27 11:51:38 +00:00
.dockerignore feat: ruby template — .dockerignore 2026-07-26 21:04:43 +00:00
app.rb fix: permit platform hosts (sinatra host authorization) 2026-07-26 23:24:30 +00:00
config.ru feat: ruby template — config.ru 2026-07-26 21:04:42 +00:00
Dockerfile feat: platform base images (z3k-images) 2026-07-27 07:13:43 +00:00
Gemfile feat: ruby template — Gemfile 2026-07-26 21:04:41 +00:00
README.md feat: ruby template — README.md 2026-07-26 21:04:44 +00:00

ruby

Minimal Ruby (Sinatra on Puma) app template for the z3k platform.

  • Listens on PORT (default 8080), binds 0.0.0.0.
  • GET /health returns 200 ok — used by the platform probes.
  • GET / greets using APP_NAME.
  • Environment variables are managed in the console's Configuration tab and injected at runtime.

Push to main to deploy: the workflow builds the image and the platform rolls it out.

Running Rails? It works too — replace this app with your Rails project and its own Dockerfile; first-class Rails scaffolding (migrations, workers, assets) is on the platform roadmap.