A quick-start skeleton for one page static sites on Heroku.
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.
- Heroku cloud hosting
- Twitter Bootstrap for styling and layout
- Sinatra lightweight Ruby web app framework
Check out this Socialcast AutoFollow Bookmarklet site.
Install the heroku gem and set up your account credentials
Run these initialization commands:
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
public/index.htmlto suit your needs
git commit -am "edited index.html for reasons x y z
git push heroku master
This is a Sinatra project. Start by adding extra routes (pages) to
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