60 lines
1.0 KiB
Markdown
60 lines
1.0 KiB
Markdown
|
|
# Deployment Guide
|
||
|
|
|
||
|
|
## Production Deployment
|
||
|
|
|
||
|
|
### Prerequisites
|
||
|
|
|
||
|
|
- SSH access to production server (192.168.11.140)
|
||
|
|
- Password for root user
|
||
|
|
- `sshpass` installed (or use SSH keys)
|
||
|
|
|
||
|
|
### Quick Deploy
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# From explorer-monorepo root
|
||
|
|
./scripts/deploy.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
### Manual Deploy
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# Copy files manually
|
||
|
|
scp frontend/public/index.html root@192.168.11.140:/var/www/html/index.html
|
||
|
|
```
|
||
|
|
|
||
|
|
### Environment Variables
|
||
|
|
|
||
|
|
The deployment script uses these environment variables:
|
||
|
|
|
||
|
|
- `IP`: Production server IP (default: 192.168.11.140)
|
||
|
|
- `DOMAIN`: Domain name (default: explorer.d-bis.org)
|
||
|
|
- `PASSWORD`: SSH password (default: L@kers2010)
|
||
|
|
|
||
|
|
```bash
|
||
|
|
IP=192.168.11.140 DOMAIN=explorer.d-bis.org ./scripts/deploy.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
## Rollback
|
||
|
|
|
||
|
|
If deployment fails, rollback to previous version:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
ssh root@192.168.11.140
|
||
|
|
cp /var/www/html/index.html.backup.* /var/www/html/index.html
|
||
|
|
```
|
||
|
|
|
||
|
|
## Testing
|
||
|
|
|
||
|
|
After deployment, test the explorer:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
./scripts/test.sh
|
||
|
|
```
|
||
|
|
|
||
|
|
Or manually:
|
||
|
|
|
||
|
|
```bash
|
||
|
|
curl -k -I https://explorer.d-bis.org/
|
||
|
|
```
|
||
|
|
|