added stop/start service func
This commit is contained in:
3
Makefile
3
Makefile
@@ -56,11 +56,12 @@ DEPLOY_DIR ?= /var/www/ridgwaysystems
|
||||
|
||||
.PHONY: deploy
|
||||
deploy: cross
|
||||
ssh $(DEPLOY_HOST) "rcctl stop $(BINARY); pkill $(BINARY); true"
|
||||
scp $(BINARY)-openbsd-amd64 $(DEPLOY_HOST):/usr/local/bin/$(BINARY)
|
||||
rsync -av --delete templates/ $(DEPLOY_HOST):$(DEPLOY_DIR)/templates/
|
||||
rsync -av --delete static/ $(DEPLOY_HOST):$(DEPLOY_DIR)/static/
|
||||
rsync -av content/ $(DEPLOY_HOST):$(DEPLOY_DIR)/content/
|
||||
ssh $(DEPLOY_HOST) rcctl restart $(BINARY)
|
||||
ssh $(DEPLOY_HOST) rcctl start $(BINARY)
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
|
||||
Reference in New Issue
Block a user