summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-10-08 00:23:44 +0900
committernsfisis <nsfisis@gmail.com>2023-10-08 00:35:45 +0900
commit111c7319d54d32eb1360c731c443b1675edc3ded (patch)
treefb00a815689aa5596204c003e52d1d0fe5cb029c /Makefile
parent777d36505713749916dfbd4d0a5fd90302271328 (diff)
downloadnsfisis.dev-111c7319d54d32eb1360c731c443b1675edc3ded.tar.gz
nsfisis.dev-111c7319d54d32eb1360c731c443b1675edc3ded.tar.zst
nsfisis.dev-111c7319d54d32eb1360c731c443b1675edc3ded.zip
feat(proxy): mioproxy
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 7 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index ce0c997e..8b8186cc 100644
--- a/Makefile
+++ b/Makefile
@@ -2,32 +2,22 @@
all: deploy
.PHONY: deploy
-deploy: build serve
+deploy: clean build serve
-.PHONY: setup
-setup: .nsfisis_dev_shared_network certbot
- cd vhosts/blog; make setup
+.PHONY: provision
+provision:
+ sudo sh provisioning/run.sh
.PHONY: build
build:
- docker-compose build
cd vhosts/blog; make build
.PHONY: serve
-serve: .nsfisis_dev_shared_network
- docker-compose up -d
+serve:
+ sudo systemctl start mioproxy
cd vhosts/blog; make serve
.PHONY: clean
clean:
cd vhosts/blog; make clean
- docker-compose down
- docker network ls | grep nsfisis_dev_shared > /dev/null && docker network rm nsfisis_dev_shared
-
-.PHONY: .nsfisis_dev_shared_network
-.nsfisis_dev_shared_network:
- docker network ls | grep nsfisis_dev_shared > /dev/null || docker network create nsfisis_dev_shared
-
-.PHONY: certbot
-certbot:
- docker-compose run --rm --entrypoint 'certbot certonly --register-unsafely-without-email --webroot -w /var/letsencrypt/www -d nsfisis.dev,blog.nsfisis.dev,www.nsfisis.dev' certbot
+ sudo systemctl stop mioproxy