membphis commented on a change in pull request #3335:
URL: https://github.com/apache/apisix/pull/3335#discussion_r559914991



##########
File path: Makefile
##########
@@ -56,6 +57,9 @@ ifeq ($(LUAROCKS_VER),luarocks 3.)
 else
        luarocks install rockspec/apisix-master-0.rockspec --tree=deps 
--only-deps --local
 endif
+ifneq ($(LUA_VER),Lua 5.1)
+       sed -i '' -e "s|#!/usr/bin/env lua|#!/usr/bin/env 
$(LUAJIT_DIR)/bin/luajit|g" ./bin/apisix

Review comment:
       this is a hack way. it should not be enough.
   
   here is another way, we can make a try:
   
   ```shell
   #!/bin/sh
   
   # find the openresty, eg: which openresty
   ...
   # find the luajit of openresty
   ...
   # run the CLI of APISIX
   $luajit -e '...'
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to