Deploying Your Sinatra App to Production

A step-by-step guide for deploying a Sinatra app to production would definitely make this tutorial too long. But to give you an idea of the options you have, consider:

  • Using a PaaS like Heroku.
  • Using a cloud service provider like AWS Elastic Cloud or the likes of Digital Ocean and Linode.

If you use Heroku, one thing to note is that you will need to include a Procfile in your app’s root:

text

web: bundle exec rackup config.ru -p $PORT

To deploy to a cloud service like AWS’s Elastic Cloud, the easiest method is to Dockerize your app and deploy the container.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *