Skip to content

Commit

Permalink
[cli] preload apicast before rover setup
Browse files Browse the repository at this point in the history
because openresty directories are going to be removed
from the load paths and it won't be possible to
load libraries provided by openresty
  • Loading branch information
mikz committed Nov 28, 2017
1 parent 4b91e4c commit 7a51a61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gateway/bin/cli
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
local ok, setup = pcall(require, 'rover.setup')

if ok then
-- preload apicast before openresty lua paths are removed
require('apicast.executor')

setup()
else
package.path = './src/?.lua;' .. package.path
Expand Down

0 comments on commit 7a51a61

Please sign in to comment.