chore: lots of changes

This commit is contained in:
2025-05-24 07:09:22 +02:00
parent 77ee769d5e
commit 899227b0a4
178 changed files with 5145 additions and 53 deletions

11
bin/check-env Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
if [ ! -f .env ]; then
echo "❌ .env fehlt!"
exit 1
fi
if ! grep -q "APP_PORT=" .env; then
echo "⚠️ APP_PORT nicht gesetzt"
fi
# TODO In make up oder make deploy einbauen.

4
bin/deploy Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh -l
# Führt das Ansible-Deploy-Playbook aus
/home/michael/.local/bin/ansible-playbook -i ansible/inventory.ini ansible/playbooks/deploy.yml

3
bin/down Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Stoppt alle laufenden Container
docker compose down

3
bin/logs Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Zeigt die Live-Logs aller Container
docker compose logs -f

3
bin/restart Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Stoppt und startet alle Container neu
docker compose down && docker compose up -d

3
bin/setup Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Führt das Ansible-Deploy-Playbook aus
/home/michael/.local/bin/ansible-playbook -i ansible/inventory.ini ansible/playbooks/setup.yml

3
bin/test Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Platzhalter für Tests kann später durch phpunit, etc. ersetzt werden
docker compose exec php ./vendor/bin/pest # --coverage

3
bin/up Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
# Startet Docker-Container im Hintergrund
docker compose up -d