Skip to content

Commit

Permalink
feat(*) make Kong's require LuaRocks-aware
Browse files Browse the repository at this point in the history
Installation methods such as homebrew/kong must use unusual rock trees
locations. Currently, this patch is shipped with it since
Kong/homebrew-kong#43
  • Loading branch information
thibaultcha committed May 4, 2017
1 parent d15fb51 commit 7abd13b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/busted
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env resty

require "luarocks.loader"

require("kong.core.globalpatches")({
cli = true,
rbusted = true
Expand Down
2 changes: 2 additions & 0 deletions bin/kong
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env resty

require "luarocks.loader"

package.path = "?/init.lua;"..package.path

require("kong.cmd.init")(arg)
1 change: 1 addition & 0 deletions kong/templates/nginx_kong.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ lua_ssl_verify_depth ${{LUA_SSL_VERIFY_DEPTH}};
> end
init_by_lua_block {
require 'luarocks.loader'
require 'resty.core'
kong = require 'kong'
kong.init()
Expand Down

0 comments on commit 7abd13b

Please sign in to comment.