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 <eloy.coto@acalustra.com>
  • Loading branch information
eloycoto committed May 19, 2021
1 parent d19ec3a commit c213176
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 c213176

Please sign in to comment.