keplerproject / wsapi

WSAPI is an API that abstracts the web server from Lua web applications.
http://keplerproject.github.io/wsapi
74 stars 33 forks source link

Config file definition using environment variable #6

Closed ghost closed 12 years ago

ghost commented 12 years ago

This way, is possible to use luajit with custom wsapi config file. The command line can be used like this

~/.luarocks/bin/wsapi -c yourconfig.lua

or this: ~/.luarocks/bin/wsapi --config=yourconfig.lua;

or this: _export WSAPI_CONFIG=yourconfig.lua; ~/.luarocks/bin/wsapi_