Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A sample Sinatra application ready for deployment to Heroku for rapid prototyping.
tree: 11310403ab

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public @ 0810b7b
views
.gitignore
.gitmodules
Gemfile
Gemfile.lock
README.md
app.rb
config.ru

README.md

Armor

A sample Sinatra application ready for deployment to Heroku. Using Twitter's Bootstrap project for style. Both projects are great for rapid prototyping.

Get Started

  • Clone then cd to this repo.

Add Bootstrap

  • $ git submodule init
  • $ git submodule update

Commit

  • $ git add * (Make sure all new files are added to the repo)
  • $ git commit -m 'first commit'

Push to Heroku

  • $ heroku create [optional-app-name] (You can rename your app with heroku rename)
  • $ git push heroku master

Heroku currently dosen't support git submodules so the workaround is to track the submodule using the method below.

$ cd myapp
$ rm -rf `find . -mindepth 2 -name .git`
$ git rm --cache `git submodule | cut -f2 -d' '`
$ git rm .gitmodules
$ git add .
$ git config -l | grep '^submodule' | cut -d'=' -f1 | xargs -n1 git config --unset-all
$ git commit -m "brought submodules into the main repo"

Then just build.

More info using Rack apps in Heroku.

Inspired by Blake Mizerany's Sinatra-Heroku-App.

Something went wrong with that request. Please try again.