nginx - How to introduce all the files in the lua directory (`kafka/*`) into the environment?
伊谢尔伦
伊谢尔伦 2017-05-16 17:08:17
0
1
809

Ask a question:
How to introduce all the files in the lua directory (kafka/*) into the environment? I only know the following method

package.path = package.path..';lua/?.lua'

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
洪涛

Found a solution on github.

init.lua

package.path = package.path.. ';lua/?.lua'
               .. ';lua/resty/kafka/?.lua';
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template