Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 575 Bytes

File metadata and controls

32 lines (23 loc) · 575 Bytes
layout default
title How to use Bundler with Sinatra
url /sinatra
previous /rubymotion
next /git_bisect

How to use Bundler with Sinatra

To use bundler with a Sinatra application, you only need to do two things. First, create a Gemfile.

gem 'sinatra'

Then, set up your config.ru file to load the bundle before it loads your Sinatra app.

require 'bundler'

Bundler.require

require './my_sinatra_app'
run MySinatraApp

Start your development server with rackup, and Sinatra will be loaded via Bundler.

$ bundle exec rackup