summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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