Ruby (Sinatra) app template — z3k platform
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .dockerignore | ||
| app.rb | ||
| config.ru | ||
| Dockerfile | ||
| Gemfile | ||
| README.md | ||
ruby
Minimal Ruby (Sinatra on Puma) app template for the z3k platform.
- Listens on
PORT(default8080), binds0.0.0.0. GET /healthreturns200 ok— used by the platform probes.GET /greets usingAPP_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.