Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 727 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 727 Bytes

Ruby starter

Deploy on velixir

Sinatra with a Procfile, which is all Ruby needs to go from source to a served request. bundle install runs server-side against your Gemfile.

Deploy it on velixir.

Running it locally

bundle install
bundle exec ruby app.rb

Then open http://localhost:8080.

Deploying

velixir deploy

The one rule

Bind $PORT on 0.0.0.0. Sinatra defaults to localhost, which the platform health check cannot reach from outside the container, so both app.rb and the Procfile set it explicitly.

Licence

MIT.