Commit Graph

14 Commits

Author SHA1 Message Date
Yichun Zhang (agentzh) 2a2c1269b0 bugfix: resty utility: not all the system environments were passed in. 2014-09-10 13:36:27 -07:00
Yichun Zhang (agentzh) b2cc655554 change: resty: print() is now identical to ngx.say(), which is more in line with the std "print" function. thanks Michal Cichra for the original patch in #65. 2014-09-10 13:29:39 -07:00
Yichun Zhang (agentzh) 07913609c6 bugfix: resty: we should check the case when exec() fails. thanks Michal Cichra for the original patch in #65. 2014-09-10 13:24:18 -07:00
Yichun Zhang (agentzh) cf8c075e79 resty: more improvements.
* made ngx.exit() an alias of os.exit().
* made the exit status code right for the wrapper process.
* require at least ngx_lua 0.9.12 to prevent memory bugs in older
  versions.
* suppressed a debugging output line.
2014-08-20 22:02:40 -07:00
Yichun Zhang (agentzh) bb71a30a68 resty: added -I dir for adding dir to Lua module search paths. 2014-08-20 21:45:38 -07:00
Yichun Zhang (agentzh) af058d15db resty: made ngx.say, ngx.print, and print accept the same types of arguments as ngx_lua's default. 2014-08-20 21:22:14 -07:00
Yichun Zhang (agentzh) 59e6665224 resty: made ngx.print, ngx.say, and print return meaninful values; also mocked ngx.flush() and ngx.eof(). 2014-08-20 21:10:18 -07:00
Yichun Zhang (agentzh) fae163cc70 resty: use the nameservers in /etc/resolv.conf; if none, default to google's 2 open DNS servers, 8.8.8.8 and 8.8.4.4. 2014-08-20 21:03:27 -07:00
Yichun Zhang (agentzh) fd1f99ff52 resty: removed the redundant child process reaping code, which also fixes a warning reported by Anton Heryanto. 2014-08-20 20:50:37 -07:00
Yichun Zhang (agentzh) 1140a2fa67 resty: added bug report info to the "resty" utility's usage output. 2014-08-20 15:52:03 -07:00
Yichun Zhang (agentzh) 6f26127d9b resty: made the usage text more concise. 2014-08-20 15:33:33 -07:00
Yichun Zhang (agentzh) 96fc664875 resty: added the -V option. 2014-08-20 15:31:29 -07:00
Yichun Zhang (agentzh) f7e34420c0 resty: more configuration love. 2014-08-20 15:24:57 -07:00
Yichun Zhang (agentzh) 399bdecaef feature: added new command-line utility, "resty", to run Lua code or Lua files (for OpenResty) directly from the command-line. it is installed into the "<prefix>/bin" directory. prodded by Vitaly Kosenko. 2014-08-20 14:58:58 -07:00