Browse Source

[lapis] Fix json route and update openresty to v1.19.9.1 (#6922)

* [lapis] Fix json route

* Update openresty to v1.19.9.1
Joan Miquel 3 years ago
parent
commit
db7719ddf9

+ 1 - 1
frameworks/Lua/lapis/benchmark_config.json

@@ -2,7 +2,7 @@
   "framework": "lapis",
   "framework": "lapis",
   "tests": [{
   "tests": [{
     "default": {
     "default": {
-      "json_url": "/",
+      "json_url": "/json",
       "db_url": "/db",
       "db_url": "/db",
       "query_url": "/queries?queries=",
       "query_url": "/queries?queries=",
       "fortune_url": "/fortunes",
       "fortune_url": "/fortunes",

+ 2 - 2
frameworks/Lua/lapis/lapis.dockerfile

@@ -1,4 +1,4 @@
-FROM buildpack-deps:xenial
+FROM buildpack-deps:focal
 
 
 ENV LUA_VERSION="5.1"
 ENV LUA_VERSION="5.1"
 ENV LUA_MICRO="5"
 ENV LUA_MICRO="5"
@@ -33,7 +33,7 @@ RUN cd $LUAROCKS && \
     ./configure --prefix=$LUA_HOME --with-lua=$LUA_HOME && \
     ./configure --prefix=$LUA_HOME --with-lua=$LUA_HOME && \
     make --quiet bootstrap
     make --quiet bootstrap
 
 
-ENV OPENRESTY_VERSION="1.11.2.1"
+ENV OPENRESTY_VERSION="1.19.9.1"
 ENV OPENRESTY=/openresty
 ENV OPENRESTY=/openresty
 ENV OPENRESTY_HOME=$OPENRESTY-$OPENRESTY_VERSION
 ENV OPENRESTY_HOME=$OPENRESTY-$OPENRESTY_VERSION
 
 

+ 1 - 1
frameworks/Lua/lapis/web.lua

@@ -97,7 +97,7 @@ local Benchmark
 do
 do
   local _parent_0 = lapis.Application
   local _parent_0 = lapis.Application
   local _base_0 = {
   local _base_0 = {
-    ["/"] = function(self)
+    ["/json"] = function(self)
       return {
       return {
         json = {
         json = {
           message = "Hello, World!"
           message = "Hello, World!"