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
|
||||
|
||||
# build target should be built even if no files depend on it
|
||||
.PHONY: build
|
||||
|
||||
# if a file .local exists run site locally
|
||||
ifeq ($(wildcard .local),)
|
||||
TARGET = site_remote
|
||||
else
|
||||
TARGET = site_local
|
||||
endif
|
||||
|
||||
site: site_local
|
||||
echo $(TARGET)
|
||||
|
||||
site_remote:
|
||||
git pull
|
||||
makesite
|
||||
systemctl reload nginx
|
||||
|
||||
site_local:
|
||||
# run locally
|
||||
site:
|
||||
uv run python makesite.py --params params-local.json
|
||||
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
|
||||
|
||||
# docker build
|
||||
# docker build image
|
||||
build:
|
||||
docker build -t source.madyanne.fr/yax/blog .
|
||||
|
||||
# docker publish
|
||||
# docker publish image
|
||||
publish:
|
||||
docker push source.madyanne.fr/yax/blog
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue