use make without arguments for local and remote build

dependabot/pip/urllib3-2.0.7
Yax 1 year ago
parent 9b93adbb4b
commit 1826de7102

1
.gitignore vendored

@ -16,3 +16,4 @@ blog.sublime-workspace
ssl/
.python-version
poetry.toml
.local

@ -1,12 +1,23 @@
site:
# Makefile
#
# if a file .local exists run site locally
ifeq ($(wildcard .local),)
TARGET = site_remote
else
TARGET = site_local
endif
site: $(TARGET)
echo $(TARGET)
site_remote:
git pull
makesite
systemctl reload nginx
site_local:
./makesite.py --params params-local.json
serve: site_local
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
dock: site_local

Loading…
Cancel
Save