Static page routing in Sinatra (Ruby)

前端 未结 6 841
醉酒成梦
醉酒成梦 2021-02-13 13:39

You can serve static files with Sinatra by placing them in public/ (by default) -- I have an index.html in there at the moment, but how can I make the

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-13 14:20

    using passenger this seems to work right out of the box. having an index.html file in the public directory and no routing brings up the index.html when accessing the root url.

提交回复
热议问题