GithubHelp home page GithubHelp logo

mongrel2-lua's People

Contributors

jsimmons avatar norman avatar stuartpb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mongrel2-lua's Issues

Problem installing on Mac OS X

Hi,

I get this weird error, when I try to install using the guide fromhttp://tir.mongrel2.org/wiki/install.html:

luarocks install mongrel2-lua-1.6.1.rockspec                                                                    /tmp|16:01:04

Error: Directory v1.6 not found inside archive v1.6.1

Error in SQL query, patch attached.

Hey josh, there's a 1 line fix for the m2 config stuff that is breaking configs with multiple hosts:

diff --git a/config.lua b/config.lua
index d535b18..8e219f0 100644
--- a/config.lua
+++ b/config.lua
@@ -67,7 +67,7 @@ end
 local function db_select(db, name, predicate)
     local query
 
-    if data then
+    if predicate then
         local conditions = {}
         for k, v in pairs(predicate) do
             local condition = ('%s = %s'):format(k, sql_tostring(v))

Thanks.

is_disconnect in example

Example should shows "is_disconnect()" function usage. The current version of example is incorrect. Try:

  1. start mongrel
  2. connect with curl
  3. kill curl
  4. start example
  5. example in infinite loop now

No tests!

Especially worrisome for the config stuff.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.