jr7b2a
Last Updated: February 25, 2016
·
1.055K
· 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

4 Responses
Add your response

441

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 ·
442

Sorry for posting with a wrong title

over 1 year ago ·
447

I you want to setup local address for static site quick, then http://anvilformac.com/ is awesome.

over 1 year ago ·
454

Take a look at this gist, this is probably what you were trying to achieve.
https://gist.github.com/3344092

over 1 year ago ·