Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CSS JavaScript Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
public
spec
views
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.markdown
config.ru
my_app.rb
server

README.markdown

Hey

Heroku Sinatra Template

This is a template Sinatra app with some MVC-oriented configurations and testing built in.

See the homepage for more details.

Usage

Clone this repo git clone git://github.com/dpaluy/heroku-sinatra-app [appname]

Controller

Sinatra conveniently combines the controller functionality in with the routing. This is all in the usual my_app.rb file.

Views

Each view has its own file in the views directory. This app uses erb for templating.

Assets

Images, JavaScripts, and CSS are located together in the public directory.

Testing

This app is configured to use RSpec for testing, with tests located in the spec directory.

Getting Started

bundle exec rackup -p 3000

This template sinatra application is ready for deployment to Heroku.

  • Create an acount in seconds at Heroku.
  • If you do not have an SSH key you'll need to generate oneand tell Heroku about it
  • cd /path/to/project
  • heroku create [optional-app-name] (You can rename your app with heroku rename)
  • git push heroku master
  • heroku open
Something went wrong with that request. Please try again.