GitXplorerGitXplorer
a

sinatra-static-web

public
7 stars
8 forks
2 issues

Commits

List of commits on branch master.
Unverified
5a53c09dac28f096edda52b080278c01dea01d39

Update for latest CF defaults, bump component versions

aandypiper committed 12 years ago
Unverified
8684863c53df6686ef55443cceaa07c69e7ee2df

Merge pull request #1 from MarkKropf/patch-1

aandypiper committed 12 years ago
Unverified
711d7e15f4b6a97e7e489fa68e0b48dbe47c9dad

Update manifest.yml

MMarkKropf committed 12 years ago
Unverified
43bfdd5ab396b5e3bb0f654887bf854a9c4ef13e

first add of code to Github

aandypiper committed 13 years ago
Unverified
c9990082f71f4bcc95cd5ed0806551f62d020d9c

Initial commit

aandypiper committed 13 years ago

README

The README file for this repository.

SimpleWeb

A trivial app to demonstrate serving of static content using the Sinatra framework in Ruby.

Some sample / placeholder content is provided (styled with Bootstrap) but the expectation is that the user will replace the contents of the public directory with files for static serving by the Ruby app.

Read more about the motivation for this on my blog.

Overview

This example uses:

Deployment

What are all these files?

Nothing, really. No, really. Everything in the public folder is there as a placeholder. All you need to get going is the web.rb file (well, OK, you need the Gemfile and config.ru too).

Put your own static web content (with an index.html file, and maybe a 404.html file) in the public folder, and either:

  • run bundle install then rackup from the root directory; or
  • deploy to Cloud Foundry as a Rack/Sinatra application

... and you are good to go.

Optionally, fiddle with the settings in the top of the web.rb file to tweak how things work.

There is an example Cloud Foundry manifest.yml(.example) file - if you wish to use this for one-push deployment, rename to manifest.yml and edit the name of the application to be something unique for your Cloud Foundry installation, or the push will fail.