Skip to content

Commit

Permalink
fix local load path
Browse files Browse the repository at this point in the history
  • Loading branch information
mikz committed Oct 23, 2017
1 parent d04158c commit 24e9e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apicast/bin/apicast
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,8 @@ main+=$(printenv | awk '$1 ~ /^(APICAST|THREESCALE)_/ {split($0,env,"="); print
function join_by { local IFS="$1"; shift; echo "$*"; }
args=$(join_by '' "${args[@]}")
main=$(join_by '' "${main[@]}")

cd "${apicast_dir}"

# shellcheck disable=SC2086
exec "${openresty_binary}" -c "${apicast_dir}/conf/nginx.conf" ${args} -g "${main} error_log ${log_file} ${log_levels[log_level]};"
2 changes: 1 addition & 1 deletion apicast/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ http {
log_format time '[$time_local] $host:$server_port $remote_addr:$remote_port "$request" $status $body_bytes_sent ($request_time) $post_action_impact';
access_log off;

lua_package_path ";;${prefix}?.lua;${prefix}src/?.lua";
lua_package_path ";;./?.lua;./src/?.lua";

# Enabling the Lua code cache is strongly encouraged for production use
# Disabling it should only be done for testing and development purposes
Expand Down

0 comments on commit 24e9e0e

Please sign in to comment.