11 Star 17 Fork 8

Gitee 极速下载/Orange-API-Gateway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/sumory/orange
克隆/下载
Makefile 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
帅进超 提交于 2019-12-13 17:58 . change: releases v0.8.1.
INST_PREFIX ?= /usr
INST_LUADIR ?= $(INST_PREFIX)/share/lua/5.1
INST_BINDIR ?= /usr/bin
INSTALL ?= install
COPY ?= cp
LINK ?= ln
REMOVE ?= rm
CHMOD ?= chmod
LUAROCKS_VER ?= $(shell luarocks --version | grep -E -o "luarocks [0-9]+")
### help: Show Makefile rules.
.PHONY: help
help:
@echo Makefile rules:
@echo
@grep -E '^### [-A-Za-z0-9_]+:' Makefile | sed 's/###/ /'
### dev: Create Orange development ENV
.PHONY: dev
dev:
ifneq ($(LUAROCKS_VER),'luarocks 3')
luarocks install rockspec/orange-master-0.rockspec --tree=deps --only-deps --local
else
luarocks install --lua-dir=/usr/local/openresty/luajit rockspec/orange-master-0.rockspec --tree=deps --only-deps --local
endif
$(INSTALL) conf/nginx.conf.example conf/nginx.conf
$(INSTALL) conf/orange.conf.example conf/orange.conf
$(INSTALL) install/orange-master.sql conf/orange-master.sql
### install: Install the Orange
.PHONY: install
install:
$(INSTALL) -d /usr/local/orange/logs
$(INSTALL) -d /usr/local/orange/conf
$(INSTALL) -d /usr/local/orange/dashboard/views
$(INSTALL) -d /usr/local/orange/dashboard/static
$(INSTALL) conf/nginx.conf.example /usr/local/orange/conf/nginx.conf
$(INSTALL) conf/orange.conf.example /usr/local/orange/conf/orange.conf
$(INSTALL) conf/mime.types /usr/local/orange/conf/mime.types
$(INSTALL) install/orange-v0.8.1.sql /usr/local/orange/conf/orange-v0.8.1.sql
$(INSTALL) -d $(INST_LUADIR)/orange/dashboard
$(INSTALL) -d $(INST_LUADIR)/orange/orange
$(INSTALL) -d $(INST_LUADIR)/orange/bin
$(INSTALL) -d $(INST_LUADIR)/orange/api
$(COPY) -rf dashboard/* $(INST_LUADIR)/orange/dashboard
$(COPY) -rf dashboard/views/* /usr/local/orange/dashboard/views
$(COPY) -rf dashboard/static/* /usr/local/orange/dashboard/static
$(COPY) -rf orange/* $(INST_LUADIR)/orange/orange
$(COPY) -rf bin/* $(INST_LUADIR)/orange/bin
$(COPY) -rf api/* $(INST_LUADIR)/orange/api
$(INSTALL) bin/orange $(INST_BINDIR)/orange
$(REMOVE) -f /usr/local/bin/orange
$(LINK) -s $(INST_BINDIR)/orange /usr/local/bin/orange
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Lua
1
https://gitee.com/mirrors/Orange-API-Gateway.git
git@gitee.com:mirrors/Orange-API-Gateway.git
mirrors
Orange-API-Gateway
Orange-API-Gateway
master

搜索帮助