Skip to content

Commit

Permalink
add config.ru example file
Browse files Browse the repository at this point in the history
and require sinatra/base
  • Loading branch information
aneta-bielska committed Mar 9, 2016
1 parent 90f0dad commit ff3fe97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion asset_management/sprockets.md
Expand Up @@ -127,7 +127,7 @@ Summing up, your main application file may look like this:
# app/app.rb

# install and require all dependencies
require 'sinatra'
require 'sinatra/base'
require 'sprockets'
require 'uglifier'
require 'sass'
Expand Down Expand Up @@ -158,6 +158,14 @@ class MyApp < Sinatra::Base
end
```

```ruby
# app/config.ru

require './app'

run MyApp.new
```

## Resources

For more information visit:
Expand Down

0 comments on commit ff3fe97

Please sign in to comment.