Remove deprecated site_remote target
This commit is contained in:
parent
78ef5cef23
commit
12e6465264
1 changed files with 5 additions and 18 deletions
23
Makefile
23
Makefile
|
@ -1,31 +1,18 @@
|
||||||
# Makefile
|
# Makefile
|
||||||
|
|
||||||
|
# build target should be built even if no files depend on it
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
# if a file .local exists run site locally
|
# run locally
|
||||||
ifeq ($(wildcard .local),)
|
site:
|
||||||
TARGET = site_remote
|
|
||||||
else
|
|
||||||
TARGET = site_local
|
|
||||||
endif
|
|
||||||
|
|
||||||
site: site_local
|
|
||||||
echo $(TARGET)
|
|
||||||
|
|
||||||
site_remote:
|
|
||||||
git pull
|
|
||||||
makesite
|
|
||||||
systemctl reload nginx
|
|
||||||
|
|
||||||
site_local:
|
|
||||||
uv run python makesite.py --params params-local.json
|
uv run python makesite.py --params params-local.json
|
||||||
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
|
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
|
||||||
|
|
||||||
# docker build
|
# docker build image
|
||||||
build:
|
build:
|
||||||
docker build -t source.madyanne.fr/yax/blog .
|
docker build -t source.madyanne.fr/yax/blog .
|
||||||
|
|
||||||
# docker publish
|
# docker publish image
|
||||||
publish:
|
publish:
|
||||||
docker push source.madyanne.fr/yax/blog
|
docker push source.madyanne.fr/yax/blog
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue