Skip to content

Commit

Permalink
fix an install bug for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
idevz committed May 6, 2016
1 parent 81966d0 commit 6da0ac0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion vanilla/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ install: all
# $(INSTALL) -d $(VANILLA_LIB_DIR)/vanilla/resty/
$(INSTALL) ./bin/ $(VANILLA_LIB_DIR)/bin
$(MKDIR) $(VANILLA_LIB_DIR)/vanilla
$(INSTALL) ./base/ $(VANILLA_ROOT)/
$(INSTALL) ./base/* $(VANILLA_ROOT)/
$(INSTALL) ./v $(VANILLA_LIB_DIR)/vanilla
$(INSTALL) ./sys $(VANILLA_LIB_DIR)/vanilla
$(INSTALL) ./vanilla-$(VANILLA_VERSION) $(VANILLA_BIN_PATH)/vanilla-$(VANILLA_VERSION)
Expand Down
10 changes: 1 addition & 9 deletions vanilla/base/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,4 @@ init_vanilla = function ()
end


--+--------------------------------------------------------------------------------+--
local helpers = require("/Users/zhoujing/data/vanilla/framework/0_1_0_rc6/vanilla.v.libs.utils")
function sprint_r( ... )
return helpers.sprint_r(...)
end

function print_r( ... )
ngx.say(sprint_r(...))
end
--+--------------------------------------------------------------------------------+--
4 changes: 2 additions & 2 deletions vanilla/sys/application.lua
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ init_vanilla()
--+--------------------------------------------------------------------------------+--
if Registry['VA_ENV'] == nil then
-- if Registry['VA_ENV'] == nil then
local helpers = LoadV "vanilla.v.libs.utils"
function sprint_r( ... )
return helpers.sprint_r(...)
Expand All @@ -993,7 +993,7 @@ if Registry['VA_ENV'] == nil then
function err_log(msg)
ngx.log(ngx.ERR, "===zjdebug" .. msg .. "===")
end
end
-- end
--+--------------------------------------------------------------------------------+--
Expand Down

0 comments on commit 6da0ac0

Please sign in to comment.