Skip to content

Commit c213176

Browse files
committed
Openresty Update: Add openresty to path
Signed-off-by: Eloy Coto <[email protected]>
1 parent d19ec3a commit c213176

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gateway/bin/apicast

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ if ($rover && !$lua_path) {
6868
$lua_lib ||= ';';
6969
}
7070

71-
$ENV{APICAST_DIR} = $apicast_conf;
7271

73-
$ENV{LUA_PATH} = sprintf('%1$s/?.lua;', $apicast_src) . $lua_path;
74-
$ENV{LUA_CPATH} = sprintf('%1$s/?.so;', $apicast_lib) . $lua_lib;
7572

73+
$ENV{APICAST_DIR} = $apicast_conf;
74+
$ENV{LUA_PATH} = sprintf('%1$s/?.lua;', $apicast_src) . $lua_path . "/usr/local/openresty/lualib/?.lua;";
75+
$ENV{LUA_CPATH} = sprintf('%1$s/?.so;', $apicast_lib) . $lua_lib;
7676
$ENV{PWD} = $cwd;
7777
$ENV{ARGV0} = $0;
7878

0 commit comments

Comments
 (0)