Skip to content

Instantly share code, notes, and snippets.

@enotodden
Last active December 19, 2015 04:28
Show Gist options
  • Save enotodden/5896926 to your computer and use it in GitHub Desktop.
Save enotodden/5896926 to your computer and use it in GitHub Desktop.
Example of serving static files with Turbo.
local turbo = require "turbo"
application = turbo.web.Application:new({
{"/static/(.*)$", turbo.web.StaticFileHandler, "/var/www/"},
})
application:listen(8888)
turbo.ioloop.instance():start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment