A Sinatra template for Heroku with Haml, Sass & jQuery
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
public
views
.gitignore
Gemfile
Gemfile.lock
README.markdown
Rakefile
application.rb
config.ru

README.markdown

Sinatra Template for Heroku with Haml, Sass & jQuery | TJ Stein

Prerequisites

  • Git client
  • Heroku & bundler gem: gem install heroku bundler

This repository includes a base HTML 5 template for Sinatra, ready for Heroku deployment. Use bundle install to grab all of the gem dependencies. If you get lost during deployment, check out Getting Started with Heroku

Usage

git clone git@github.com:bummercloud/sinatra-heroku-template.git PROJECT_NAME
heroku create PROJECT_NAME
cd PROJECT_NAME
bundle install
git remote add heroku git@heroku.com:PROJECT_NAME.git
git push heroku master

Testing Locally

When developing on your local machine, simply run shotgun to preview the application at localhost:9393.

Google Analytics

To enable Google Analytics for your app, I've included an analytics.haml in /views. Be sure to edit line 4 to include your account ID: _gaq.push(['_setAccount', 'UA-#######-#']);