Hi, I am wanting to use the mongol pure lua module to connect with mongodb. SO!
I added the mongol module where all the other lua modules are placed.
As per the documentation of mongol lib on github i added the following line in the nginx.conf file:
lua_package_path '/usr/local/openresty/lualib/?/init.lua;;';
What does that "?" in the package path stand for? Do I have to replace that with the mongol module folder name.
Also two problems are occuring after I add this. My local redis = require "resty.redis" starts to throw errors. If I remove the lua_package_path directive in the nginx.conf file it works fine.
Even the mongol is not getting initiated.
How do we correctly add external modules and use them in openresty?
Thanks a lot!
Regards,
Samar