1.3 KiB
1.3 KiB
Run All Deployment Steps
Quick Command
Run this single command to complete all deployment steps:
cd explorer-monorepo
bash scripts/run-all-deployment.sh
What It Does
- ✅ Tests database connection with
exploreruser - ✅ Checks for existing tables
- ✅ Runs migration if needed
- ✅ Stops existing server
- ✅ Starts server with database connection
- ✅ Tests all endpoints
- ✅ Provides summary and next steps
Manual Steps (if script fails)
1. Test Database
PGPASSWORD='L@ker$2010' psql -h localhost -U explorer -d explorer -c "SELECT 1;"
2. Run Migration
cd explorer-monorepo
PGPASSWORD='L@ker$2010' psql -h localhost -U explorer -d explorer \
-f backend/database/migrations/0010_track_schema.up.sql
3. Restart Server
pkill -f api-server
cd explorer-monorepo/backend
export DB_PASSWORD='L@ker$2010'
export JWT_SECRET='your-secret-here'
./bin/api-server
4. Test
curl http://localhost:8080/health
curl http://localhost:8080/api/v1/features
Expected Results
- ✅ Database connected
- ✅ Tables created
- ✅ Server running on port 8080
- ✅ All endpoints responding
- ✅ Health shows database as "ok"
See DEPLOYMENT_FINAL_STATUS.md for complete status.