Open arnoldtonderaimarunda opened 7 years ago
I have deployed a static site using https://devcenter.heroku.com/articles/static-sites-ruby
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.
use Rack::Offline, :cache => "images", :root => "public"
If your site is static (plain HTML files) then you won't be using config.ru since you won't need an app server.
config.ru
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.