deploy-nginx: add recipe, upload scripts to /tmp, print sudo instructions

This commit is contained in:
Pontoporeia committed 2026-03-02 16:08:45 +01:00
1 parent 5e1543e9a8
commit 7208292c0e
4 files changed
+109 -119

No files matched your search

+16 -1
View File
@@ -55,7 +55,22 @@ deploy:
[group('deploy')]
setup-server:
rsync -v scripts/setup-server.sh posterg:/tmp/setup-server.sh
ssh posterg "sudo DEPLOY_USER=$(ssh -G posterg | awk '/^user / {print $2}') bash /tmp/setup-server.sh"
@echo ""
@echo "Script uploaded. SSH into the server and run:"
@echo ""
@echo " sudo DEPLOY_USER=\$USER bash /tmp/setup-server.sh"
@echo ""
[group('deploy')]
deploy-nginx:
rsync -v nginx/posterg.conf posterg:/tmp/posterg.conf
rsync -v scripts/deploy-server.sh posterg:/tmp/deploy-server.sh
@echo ""
@echo "Files uploaded. SSH into the server and run:"
@echo ""
@echo " sudo bash /tmp/deploy-server.sh"
@echo " sudo systemctl reload nginx"
@echo ""
[group('deploy')]
deploy-db: