2024-11-10 00:04:43 +03:00
|
|
|
.PHONY: deploy
|
|
|
|
|
2024-12-06 19:55:44 +03:00
|
|
|
serve:
|
|
|
|
hugo server --gc --noBuildLock
|
|
|
|
|
2024-11-10 00:04:43 +03:00
|
|
|
deploy:
|
2024-11-29 18:07:43 +03:00
|
|
|
git add .
|
2024-11-29 18:08:28 +03:00
|
|
|
git ci -m "Auto-commit $(shell date '+%Y-%m-%d')"
|
2024-11-29 18:07:43 +03:00
|
|
|
git push
|
2024-12-06 19:55:44 +03:00
|
|
|
hugo --gc --noBuildLock
|
|
|
|
rsync -avz --delete public/ neonxp@192.168.50.30:/var/www/neonxp.ru
|
|
|
|
|
2024-11-28 00:46:17 +03:00
|
|
|
post:
|
2024-12-06 19:55:44 +03:00
|
|
|
hugo new content posts/$(shell date '+%Y-%m-%d')-$(name)/index.md
|