File: fastcgi-example.lua

package info (click to toggle)
lua-wsapi 1.1.0-8
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 400 kB
  • ctags: 171
  • sloc: ansic: 613; sh: 100; makefile: 30
file content (11 lines) | stat: -rwxr-xr-x 333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env lua51

-- Example of script that uses the fastcgi launcher to launch an Orbit application

local fastcgi = require"wsapi.fastcgi"

-- require'ing the application. It should be in your package.path
local app = require"app"

-- Calls the launcher, app.run is the WSAPI run method of the application
fastcgi.run(app.run)