aboutsummaryrefslogtreecommitdiff
path: root/themes/terrassa/makefile
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-03-16 17:43:05 +0100
committerDimitri Staessens <dimitri@ouroboros.rocks>2019-03-16 17:43:05 +0100
commit79acfcf1599496e67b20c39c00a100b07c383ab1 (patch)
tree0651646a631545b2ff56074f4c8f492d69dbb170 /themes/terrassa/makefile
parent4b98568dbdc0dddf8255abbbb08565821b79f839 (diff)
downloadwebsite-79acfcf1599496e67b20c39c00a100b07c383ab1.tar.gz
website-79acfcf1599496e67b20c39c00a100b07c383ab1.zip
theme: Add terrassa theme
Diffstat (limited to 'themes/terrassa/makefile')
-rw-r--r--themes/terrassa/makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/themes/terrassa/makefile b/themes/terrassa/makefile
new file mode 100644
index 0000000..6f35a8a
--- /dev/null
+++ b/themes/terrassa/makefile
@@ -0,0 +1,29 @@
+IMAGE_NAME=terrassa
+APP_NAME=terrassa
+IMAGE_PORT=80
+HOST_PORT=80
+HUGO_SITE=exampleSite
+HUGO_BASE_URL=https://danielkvist.github.io/terrassa/
+
+build:
+ cd ./$(HUGO_SITE) && hugo
+build-min:
+ cd ./$(HUGO_SITE) && hugo --minify
+build-deploy:
+ cd ./$(HUGO_SITE) && hugo --minify --baseURL="$(HUGO_BASE_URL)"
+server:
+ cd ./$(HUGO_SITE) && hugo server -w
+server-draft:
+ cd ./$(HUGO_SITE) && hugo server -w -D
+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 container run -d -p $(IMAGE_PORT):$(HOST_PORT) --name $(APP_NAME) $(IMAGE_NAME)
+stop:
+ docker container stop $(APP_NAME)
+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