Last Updated: May 02, 2019
·
1.252K
· judearasu

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

3 Responses
Add your response

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 ·