Initial commit
This commit is contained in:
23
scripts/logs.sh
Executable file
23
scripts/logs.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 로그 확인 스크립트
|
||||
|
||||
SERVICE=$1
|
||||
|
||||
if [ -z "$SERVICE" ]; then
|
||||
echo "전체 서비스 로그:"
|
||||
echo ""
|
||||
if docker compose version &> /dev/null; then
|
||||
docker compose logs --tail=100 -f
|
||||
else
|
||||
docker-compose logs --tail=100 -f
|
||||
fi
|
||||
else
|
||||
echo "$SERVICE 서비스 로그:"
|
||||
echo ""
|
||||
if docker compose version &> /dev/null; then
|
||||
docker compose logs --tail=100 -f $SERVICE
|
||||
else
|
||||
docker-compose logs --tail=100 -f $SERVICE
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user