Skip to content

Commit

Permalink
Openresty Update: Add openresty to path
Browse files Browse the repository at this point in the history
Signed-off-by: Eloy Coto <[email protected]>
  • Loading branch information
eloycoto committed May 18, 2021
1 parent 2cc57b5 commit 9c5a062
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/bin/apicast
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ if ($rover && !$lua_path) {
$lua_lib ||= ';';
}

$ENV{APICAST_DIR} = $apicast_conf;

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

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

Expand Down

0 comments on commit 9c5a062

Please sign in to comment.