File: fastcgi-example.lua

package info (click to toggle)
lua-wsapi 1.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 624 kB
  • sloc: sh: 961; ansic: 656; makefile: 51
file content (11 lines) | stat: -rwxr-xr-x 331 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env lua

-- 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)