Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Created December 14, 2008 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtomayko/35821 to your computer and use it in GitHub Desktop.
Save rtomayko/35821 to your computer and use it in GitHub Desktop.
#!/bin/sh
# generate sinatra app
mkdir -p $1/views $1/public
cat <<RUBY > $1/app.rb
#!/usr/bin/env ruby
require 'sinatra'
set :views, File.dirname(__FILE__) + '/views'
set :public, File.dirname(__FILE__) + '/public'
get '/' do
'Hello World'
end
RUBY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment