wycats / rack-offline

A Rack and Rails plugin for building offline web applications
MIT License
666 stars 82 forks source link

Setting up config.ru for use on Heroku #39

Open arnoldtonderaimarunda opened 7 years ago

arnoldtonderaimarunda commented 7 years ago

I have deployed a static site using https://devcenter.heroku.com/articles/static-sites-ruby

Does anyone know how to set up the config.ru for use of rack-offline on Heroku?

I have tried use Rack::Offline, :cache => "images", :root => "public" , but it complains of wrong number of arguments.

andrewhavens commented 6 years ago

If your site is static (plain HTML files) then you won't be using config.ru since you won't need an app server.