notes/Makefile

21 lines
564 B
Makefile
Raw Permalink Normal View History

2026-07-07 17:03:21 -06:00
revision := $(shell git rev-parse HEAD | head -c 8)
fullRevision := $(shell git rev-parse HEAD)
2026-11-25 22:59:39 -07:00
revcount := $(shell git rev-list --count HEAD)
all: env build deploy
2026-07-07 17:03:21 -06:00
build:
npm run build
force-build:
npm run force-build
2026-07-07 17:03:21 -06:00
deploy:
2026-12-05 13:56:55 -07:00
#rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/
rsync -e "ssh -i .ssh/deploy_ecdsa" -vaAExh --delete dist/ justus@aries:/www/hosted/itsjustus.faith/public_html/
env:
echo "REVISION='$(revision)'" > .env
echo "FULL_REVISION='$(fullRevision)'" >> .env
2026-11-25 22:59:39 -07:00
echo "REV_COUNT='$(revcount)'" >> .env