Add final deployment instructions
This commit is contained in:
109
DEPLOY_NOW.md
Normal file
109
DEPLOY_NOW.md
Normal file
@@ -0,0 +1,109 @@
|
||||
# ✅ Git Push Successful - Deployment Instructions
|
||||
|
||||
## Status Update
|
||||
|
||||
**Git Repository: ✅ COMPLETE**
|
||||
- Successfully pushed to: https://git.votcloud.com/austindebest/sdi.git
|
||||
- Branch: main
|
||||
- Commits: 3 (all foundation code)
|
||||
|
||||
**Deployment Package: ✅ READY**
|
||||
- File: `sdi-deploy.tar.gz` (111KB)
|
||||
- Location: `C:\Users\USER\Documents\Netconnect\sdi-deploy.tar.gz`
|
||||
|
||||
## Deploy to Server (102.69.243.165)
|
||||
|
||||
### Method 1: Deploy from Git (Recommended)
|
||||
|
||||
```bash
|
||||
# SSH to your server
|
||||
ssh root@102.69.243.165
|
||||
# Password: clonii@@2014
|
||||
|
||||
# Clone the repository
|
||||
cd /var/www
|
||||
git clone https://46c57b35355189ac7bc0c0bf340684cd3dee29a5@git.votcloud.com/austindebest/sdi.git sdi-saas
|
||||
cd sdi-saas
|
||||
|
||||
# Install Node.js 20
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||
apt-get install -y nodejs
|
||||
|
||||
# Install pnpm
|
||||
npm install -g pnpm@8.15.0
|
||||
|
||||
# Install dependencies
|
||||
pnpm install
|
||||
|
||||
# Setup environment files
|
||||
cp apps/api/.env.example apps/api/.env
|
||||
cp apps/worker/.env.example apps/worker/.env
|
||||
cp packages/database/.env.example packages/database/.env
|
||||
|
||||
# Update DATABASE_URL for Docker networking
|
||||
sed -i 's/localhost/postgres/g' apps/api/.env
|
||||
sed -i 's/localhost/postgres/g' apps/worker/.env
|
||||
sed -i 's/localhost/postgres/g' packages/database/.env
|
||||
|
||||
# Generate Prisma client
|
||||
cd packages/database
|
||||
pnpm db:generate
|
||||
|
||||
# Start Docker services
|
||||
cd /var/www/sdi-saas
|
||||
docker-compose up -d
|
||||
|
||||
# Wait for database to be ready
|
||||
sleep 15
|
||||
|
||||
# Run migrations
|
||||
cd packages/database
|
||||
pnpm db:migrate
|
||||
|
||||
# Seed demo data
|
||||
pnpm db:seed
|
||||
|
||||
# Check services
|
||||
cd /var/www/sdi-saas
|
||||
docker-compose ps
|
||||
```
|
||||
|
||||
### Method 2: Upload Deployment Package
|
||||
|
||||
```bash
|
||||
# From your local machine (Windows)
|
||||
scp sdi-deploy.tar.gz root@102.69.243.165:/tmp/
|
||||
# Password: clonii@@2014
|
||||
|
||||
# Then SSH and deploy
|
||||
ssh root@102.69.243.165
|
||||
mkdir -p /var/www/sdi-saas && cd /var/www/sdi-saas
|
||||
tar -xzf /tmp/sdi-deploy.tar.gz
|
||||
# Follow the same steps as Method 1 above
|
||||
```
|
||||
|
||||
## Verify Deployment
|
||||
|
||||
Once deployed, access:
|
||||
- **API**: http://102.69.243.165:3000
|
||||
- **API Docs**: http://102.69.243.165:3000/api/docs
|
||||
|
||||
Check logs:
|
||||
```bash
|
||||
cd /var/www/sdi-saas
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
## Next: Phase 1 Development
|
||||
|
||||
Once deployed and verified, I'll begin Phase 1:
|
||||
|
||||
1. **Customer Portal** (Vue 3 + Nuxt 3)
|
||||
2. **Authentication & RBAC**
|
||||
3. **Complete AWS/Azure Adapters**
|
||||
4. **Real-time Features (SSE)**
|
||||
5. **Billing Engine**
|
||||
|
||||
---
|
||||
|
||||
**Please deploy using Method 1 (Git clone) and let me know when ready to proceed with Phase 1!**
|
||||
Reference in New Issue
Block a user