jr7b2a
Last Updated: February 25, 2016
·
999
· judearasu
Img 20140630 wa0000

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

Say Thanks
Respond

4 Responses
Add your response

441
11904d2d1af36d532f9d78d9d59f6819

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
Img 20140630 wa0000

Sorry for posting with a wrong title

over 1 year ago ·
447
Photo on 08.01.2013 at 04.15

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

over 1 year ago ·
454
39639fde05c65fae440b775989e55006

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

over 1 year ago ·
Awesome Job

A3e45f3a cade 11e7 83bc 71c9546a2749
Systems Engineer
·
Fulton, Maryland or Remote
·
Full Time