Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Basic Sinatra app for new projects
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
coffeescript
config
lib
public
test
views Lots of little alts
Cakefile
Gemfile
Gemfile.lock
Procfile
README.markdown
Rakefile
app.rb
config.ru

README.markdown

Sinatra Base App

A basic starter project for personal reference.

Setup

git clone git@github.com:subblue/SinatraBaseApp.git
bundle install

Local dev

shotgun

and check that the Procfile will work when deployed on the Cedar stack:

foreman start

Auto-compile Coffeescripts

cake watch

Heroku setup

For the new Cedar stack

heroku create NAME --stack cedar --addons memcache

else rename/delete Procfile and

heroku create NAME --stack bamboo

Deploy

git push heroku master
heroku open

Scale

heroku scale web=2

Introspect

heroku ps
heroku info
heroku releases
heroku logs --tail -s app

Manage

heroku config:add ENV_VAR=value
heroku run bundle exec rake task:name
heroku run bash
Something went wrong with that request. Please try again.