Git Product home page Git Product logo

Comments (2)

agentzh avatar agentzh commented on August 28, 2024

I've already replied to you on the openresty mailing list. Please note that this ticket board is English only. Also, when you say something does not work, you should always provide more details like the configuration and code that you use.

from lua-resty-mysql.

wxianfeng avatar wxianfeng commented on August 28, 2024

谢谢 春哥
已经搞定, 需要写在外部文件

下文是 @agentzh 在mail list 中的回复:

你需要把 Lua 代码放在外部文件中,这样在 lua_code_cache off 时才不需要 reload nginx.

如果你直接把 Lua 代码内联在 nginx.conf 配置文件中,则必须 reload nginx 才能生效,毕竟只有 nginx
知道如何重新加载它自己的配置文件。这一点在 ngx_lua 官方文档的 lua_code_cache 一节中有详细的说明:

http://wiki.nginx.org/HttpLuaModule#lua_code_cache

from lua-resty-mysql.

Related Issues (20)

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.