add unit files

This commit is contained in:
lubiana 2024-06-23 08:49:44 +02:00
parent 7f2eb7ec65
commit 38a2de5858
No known key found for this signature in database
5 changed files with 142 additions and 4 deletions

8
deploy/update.sh Normal file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env sh
systemctl --user stop pod-futtern
systemctl --user start pod-futtern
sleep 2
podman exec -it futtern-php /var/www/html/bin/console cache:clear
podman exec -it futtern-php /var/www/html/bin/console cache:warmup
echo 'yes' | podman exec -it futtern-php /var/www/html/bin/console doctrine:migrations:migrate