Serving static sites with rack
Your folder should be organized like this:
├── config.ru
├── Gemfile
├── Mysite
│ ├── assests
│ │ ├── css
│ │ ├── img
│ │ └── js
│ │ └── vendor
│ │ ├── jquery-1.8.2.min.js
│ │ ├── less-1.3.0.min.js
│ │ ├── modernizr.js
│ │ └── plugin.js
└── index.html
https://gist.github.com/3887141
bundle exec rackup
Written by JudeArasu
Related protips
3 Responses

You're not actually using Sinatra... just Rack. And in any case, a static site doesn't need Rack, Sinatra, Rails, or any other framework: it's static, so just use a plain ol' web server.
over 1 year ago
·

Sorry for posting with a wrong title
over 1 year ago
·

I you want to setup local address for static site quick, then http://anvilformac.com/ is awesome.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#