A minimal skeleton for a Sinatra application running on Puma.
To run the application locally, use the following command:
bundle exec pumaThe application will be available at http://localhost:4567.
This application is ready to be deployed to Heroku.
-
Install the Heroku CLI and log in: Follow the instructions on the Heroku Dev Center to install the CLI and log in to your account.
-
Create a Heroku application:
heroku create
-
Deploy the application:
git push heroku main
The following environment variables can be used to configure the Puma server:
WEB_CONCURRENCY: The number of worker processes. Defaults to2.MAX_THREADS: The number of threads per worker. Defaults to5.PORT: The port to bind to. Defaults to4567.RACK_ENV: The environment to run in. Defaults todevelopment.