Skip to content

Instantly share code, notes, and snippets.

@mascarenhas
Created October 29, 2009 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mascarenhas/221848 to your computer and use it in GitHub Desktop.
Save mascarenhas/221848 to your computer and use it in GitHub Desktop.
#!/usr/bin/lua
pcall(require,"luarocks.require")
local common = require "wsapi.common"
local fastcgi = require "wsapi.fastcgi"
local ONE_HOUR = 60 * 60
local ONE_DAY = 24 * ONE_HOUR
local wsapi_loader = common.make_isolated_loader{
filename = nil,
launcher = "wsapi.fcgi",
reload = false,
period = ONE_HOUR,
ttl = ONE_DAY
}
fastcgi.run(wsapi_loader)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment