Skip to content

Commit

Permalink
fix load path
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed Dec 4, 2020
1 parent bf7f4af commit 6f52b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apisix/cli/env.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ return function (apisix_home, pkg_cpath_org, pkg_path_org)
.. apisix_home .. "/deps/lib/lua/5.1/?.so;"

local pkg_path = apisix_home .. "/?/init.lua;"
.. apisix_home .. "/deps/share/lua/5.1/?/init.lua;"
.. apisix_home .. "/deps/share/lua/5.1/?.lua;;"

package.cpath = pkg_cpath .. package.cpath
Expand Down
2 changes: 1 addition & 1 deletion t/APISIX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ _EOC_

my $stream_enable = $block->stream_enable;
my $stream_config = $block->stream_config // <<_EOC_;
lua_package_path "$apisix_home/?.lua;$apisix_home/?/init.lua;$apisix_home/deps/share/lua/5.1/?.lua;$apisix_home/apisix/?.lua;$apisix_home/t/?.lua;;";
lua_package_path "$apisix_home/?.lua;$apisix_home/?/init.lua;$apisix_home/deps/share/lua/5.1/?/init.lua;$apisix_home/deps/share/lua/5.1/?.lua;$apisix_home/apisix/?.lua;$apisix_home/t/?.lua;;";
lua_package_cpath "$apisix_home/?.so;$apisix_home/deps/lib/lua/5.1/?.so;$apisix_home/deps/lib64/lua/5.1/?.so;;";
lua_socket_log_errors off;
Expand Down

0 comments on commit 6f52b0d

Please sign in to comment.