Skip to content

Commit

Permalink
bugfix: set configuration file to avoid using a wrong one (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
nic-chen authored and membphis committed Jul 8, 2019
1 parent 9de2107 commit 5fccb78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ init:
run:
mkdir -p logs
mkdir -p /tmp/cores/
$$(which openresty) -p $$PWD/
$$(which openresty) -p $$PWD/ -c $$PWD/conf/nginx.conf


### stop: Stop the apisix server
.PHONY: stop
stop:
$$(which openresty) -p $$PWD/ -s stop
$$(which openresty) -p $$PWD/ -c $$PWD/conf/nginx.conf -s stop


### clean: Remove generated files
Expand All @@ -70,7 +70,7 @@ clean:
### reload: Reload the apisix server
.PHONY: reload
reload:
$$(which openresty) -p $$PWD/ -s reload
$$(which openresty) -p $$PWD/ -c $$PWD/conf/nginx.conf -s reload


### install: Install the apisix
Expand Down
4 changes: 2 additions & 2 deletions bin/apisix
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ function _M.start(...)
init(...)
init_etcd(...)

-- print([[openresty -p ]] .. apisix_home)
os.execute([[openresty -p ]] .. apisix_home)
-- print([[openresty -p ]] .. apisix_home .. [[ -c ]] .. apisix_home .. "/conf/nginx.conf")
os.execute([[openresty -p ]] .. apisix_home .. [[ -c ]] .. apisix_home .. "/conf/nginx.conf")
end

function _M.stop()
Expand Down

0 comments on commit 5fccb78

Please sign in to comment.