Files
natascha-rieter-nl/Makefile
T

32 lines
680 B
Makefile

-include .env
export
# Local dev
start:
docker compose up -d
stop:
docker compose down
setup: start install-plugins
install-plugins:
docker exec natascha_grav php /app/www/public/bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
# Content (user repo)
content-push:
git subtree push --prefix=user user-deploy main
content-pull:
git subtree pull --prefix=user user-deploy main --squash
# Server
server-install:
ssh $(SERVER) "bash -s" < scripts/server-install.sh
server-install-plugins:
ssh $(SERVER) "cd $(WEBROOT) && php bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y"
server-upgrade-grav:
ssh $(SERVER) "cd $(WEBROOT) && php bin/grav upgrade"