aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'themes/terrassa/makefile')
-rw-r--r--themes/terrassa/makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/themes/terrassa/makefile b/themes/terrassa/makefile
index 6f35a8a..c021139 100644
--- a/themes/terrassa/makefile
+++ b/themes/terrassa/makefile
@@ -5,25 +5,29 @@ HOST_PORT=80
HUGO_SITE=exampleSite
HUGO_BASE_URL=https://danielkvist.github.io/terrassa/
-build:
+hugo-build:
cd ./$(HUGO_SITE) && hugo
-build-min:
+hugo-build-min:
cd ./$(HUGO_SITE) && hugo --minify
-build-deploy:
+hugo-build-deploy:
cd ./$(HUGO_SITE) && hugo --minify --baseURL="$(HUGO_BASE_URL)"
-server:
+hugo-server:
cd ./$(HUGO_SITE) && hugo server -w
-server-draft:
+hugo-server-draft:
cd ./$(HUGO_SITE) && hugo server -w -D
+hugo-clean:
+ cd ./$(HUGO_SITE) && rm -rf ./public
docker:
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --build-arg EXPOSE=$(IMAGE_PORT) -t $(IMAGE_NAME) .
docker-nc:
docker image build --build-arg HUGO_SITE=$(HUGO_SITE) --build-arg EXPOSE=$(IMAGE_PORT) --no-cache -t $(IMAGE_NAME) .
-run:
+docker-run:
docker container run -d -p $(IMAGE_PORT):$(HOST_PORT) --name $(APP_NAME) $(IMAGE_NAME)
-stop:
+docker-stop:
docker container stop $(APP_NAME)
-rm:
+docker-rm:
docker container rm $(APP_NAME)
-clean:
- docker container stop $(APP_NAME) && docker container rm $(APP_NAME) && docker image rm $(IMAGE_NAME) && cd ./$(HUGO_SITE) && rm -rf ./public
+dev: hugo-server-draft
+build: huo-build-deploy
+check: hugo-build-min docker-nc docker-run
+clean: docker-stop docker-rm hugo-clean \ No newline at end of file