Skip to content

HOWTO Serve Static Files

rtomayko edited this page Sep 13, 2010 · 6 revisions

By default, Sinatra will serve static files from a “public” directory. You can specify a different directory to serve static files from by setting the “:public” option:

set :public, "/var/www"
Clone this wiki locally