Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite guides/sinatra from HAML to Markdown #1025

Merged
merged 2 commits into from
Jan 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions source/guides/sinatra.html.haml

This file was deleted.

29 changes: 29 additions & 0 deletions source/guides/sinatra.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
title: How to use Bundler with Sinatra
---

## How to use Bundler with Sinatra

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

~~~ruby
gem 'sinatra'
~~~

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

~~~ruby
require 'rubygems'
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
~~~