chore: lots of changes
This commit is contained in:
11
bin/check-env
Normal file
11
bin/check-env
Normal 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
4
bin/deploy
Executable 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
3
bin/down
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Stoppt alle laufenden Container
|
||||
docker compose down
|
||||
3
bin/logs
Executable file
3
bin/logs
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
# Zeigt die Live-Logs aller Container
|
||||
docker compose logs -f
|
||||
3
bin/restart
Executable file
3
bin/restart
Executable 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
3
bin/setup
Executable 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
3
bin/test
Executable 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
|
||||
Reference in New Issue
Block a user