Add server make targets, install script, and .env setup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
-include .env
|
||||
export
|
||||
|
||||
# Local dev
|
||||
start:
|
||||
docker compose up -d
|
||||
|
||||
@@ -9,8 +13,19 @@ setup: start install-plugins
|
||||
install-plugins:
|
||||
docker exec natascha_grav php /app/www/public/bin/gpm install $(shell cat plugins.txt | tr '\n' ' ') -y
|
||||
|
||||
# User repo
|
||||
deploy:
|
||||
git subtree push --prefix=user user-deploy main
|
||||
|
||||
pull-content:
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user