remove /api/vault endpoints
This commit is contained in:
19
start.sh
19
start.sh
@@ -3,15 +3,9 @@ set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "=========================================="
|
||||
echo " CryptoWallet API — Docker Deploy"
|
||||
echo "=========================================="
|
||||
|
||||
# 1. Docker check
|
||||
command -v docker >/dev/null 2>&1 || { echo "[ERROR] Docker not installed"; exit 1; }
|
||||
docker compose version >/dev/null 2>&1 || { echo "[ERROR] docker compose plugin missing"; exit 1; }
|
||||
|
||||
# 2. .env check
|
||||
if [ ! -f .env ]; then
|
||||
if [ -f .env.example ]; then
|
||||
cp .env.example .env
|
||||
@@ -23,11 +17,9 @@ if [ ! -f .env ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# 3. Build & start
|
||||
echo "[INFO] Building and starting containers..."
|
||||
docker compose up -d --build
|
||||
|
||||
# 4. Wait healthy
|
||||
echo "[INFO] Waiting for API to become healthy..."
|
||||
for i in $(seq 1 30); do
|
||||
if curl -sf http://localhost:3001/api/health >/dev/null 2>&1; then
|
||||
@@ -43,10 +35,7 @@ for i in $(seq 1 30); do
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo " Up!"
|
||||
echo " API: http://localhost:3001"
|
||||
echo " Health: http://localhost:3001/api/health"
|
||||
echo " Docs: http://localhost:3001/api/docs"
|
||||
echo " Logs: docker compose logs -f api"
|
||||
echo "=========================================="
|
||||
echo "API: http://localhost:3001"
|
||||
echo "Health: http://localhost:3001/api/health"
|
||||
echo "Docs: http://localhost:3001/api/docs"
|
||||
echo "Logs: docker compose logs -f api"
|
||||
|
||||
Reference in New Issue
Block a user