Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-03-23 22:40:40 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-03-23 22:40:40 +0300
commitc099b86421e23b2df48a7d342a4f0d1101bcc6e1 (patch)
tree3ad18428e1b0c96db7990317c73648f3b4019d41 /makefile
init commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..ddf4174
--- /dev/null
+++ b/makefile
@@ -0,0 +1,33 @@
+IMAGE_NAME=
+APP_NAME=
+IMAGE_PORT=80
+HOST_PORT=80
+HUGO_SITE=exampleSite
+HUGO_BASE_URL=
+
+hugo-build:
+ cd ./$(HUGO_SITE) && hugo
+hugo-build-min:
+ cd ./$(HUGO_SITE) && hugo --minify
+hugo-build-deploy:
+ cd ./$(HUGO_SITE) && hugo --minify --baseURL="$(HUGO_BASE_URL)"
+hugo-server:
+ cd ./$(HUGO_SITE) && hugo server -w
+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) .
+docker-run:
+ docker container run -d -p $(IMAGE_PORT):$(HOST_PORT) --name $(APP_NAME) $(IMAGE_NAME)
+docker-stop:
+ docker container stop $(APP_NAME)
+docker-rm:
+ docker container rm $(APP_NAME)
+dev: hugo-server-draft
+build: huo-build-deploy
+check: hugo-build-min docker-nc docker-run
+clean: docker-stop docker-rm hugo-clean