Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A quick-start skeleton for publishing extensible one-page static sites to Heroku.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 public
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 app.rb
Octocat-spinner-32 config.ru
Octocat-spinner-32 startup.sh
README.md

Wwebsite

What?

A quick-start skeleton for one page static sites on Heroku.

screen shot

Why?

Some times it's nice to be able to put up a one-page site that can be easily extended into a dynamic application. If you know a bit of Ruby and you need an easy starting point, try Wwebsite.

How?

Demo

Check out this Socialcast AutoFollow Bookmarklet site.

Getting started

git clone git://github.com/dpritchett/wwebsite.git folder_name_goes_here
cd folder_name_goes_here
. startup.sh your-app-name-goes-here
  • Check your console output to see the URL for your new site

Customizing the starter site

  • Edit public/index.html to suit your needs
  • git commit -am "edited index.html for reasons x y z
  • git push heroku master

Adding dynamic functionality to the starter site

This is a Sinatra project. Start by adding extra routes (pages) to app.rb.

To get started, try adding the text in the box below to the bottom of app.rb. When you're done save, commmit, and push as in the previous section. For further help, see the Sinatra docs.

get '/hello' do
  "Hello, world!"
end

Who?

Daniel Pritchett

Something went wrong with that request. Please try again.