feat: add interactive deployment script with one-liner installation
- Add deploy-interactive.sh: Interactive deployment script with automatic configuration - Auto-generate secure random keys (JWT, admin reset key, crypto key, DB password) - Smart .env detection for quick updates without reconfiguration - Random port generation (10000-60000) for SERVER_PORT default - Interactive prompts with clear defaults and auto-generation hints - Automatic docker-compose.prod.yml download from GitHub - Health check and deployment verification - Add deploy-interactive-README.md: Comprehensive deployment guide - One-liner installation commands (curl/wget) - Quick update workflow for existing deployments - Detailed feature explanations and usage examples - Update README.md & README_EN.md: Add one-liner installation section - Automatic working directory creation (~polyhermes) - Simplified deployment process for new users - Clear benefits and features list Features: - 📁 Auto-creates ~/polyhermes working directory - 🔐 Generates secure random secrets automatically - ⚡ Quick update mode: skip config if .env exists - 🚀 One command from zero to running - 🌐 Downloads latest docker-compose config from GitHub - ✅ Full health check and verification
This commit is contained in:
@@ -164,6 +164,29 @@ Deploy both frontend and backend together in a single Docker container, using Ng
|
||||
|
||||
**Deployment Steps**:
|
||||
|
||||
#### ⚡ One-Liner Installation (Fastest, Recommended for New Users)
|
||||
|
||||
**Using curl (Recommended):**
|
||||
```bash
|
||||
mkdir -p ~/polyhermes && cd ~/polyhermes && curl -fsSL https://raw.githubusercontent.com/WrBug/PolyHermes/main/deploy-interactive.sh -o deploy.sh && chmod +x deploy.sh && ./deploy.sh
|
||||
```
|
||||
|
||||
**Using wget:**
|
||||
```bash
|
||||
mkdir -p ~/polyhermes && cd ~/polyhermes && wget -O deploy.sh https://raw.githubusercontent.com/WrBug/PolyHermes/main/deploy-interactive.sh && chmod +x deploy.sh && ./deploy.sh
|
||||
```
|
||||
|
||||
This command will automatically:
|
||||
- 📁 Create dedicated working directory `~/polyhermes`
|
||||
- ✅ Automatically check Docker environment
|
||||
- ⚙️ Interactive configuration for all parameters (supports pressing Enter for defaults)
|
||||
- 🔐 Automatically generate secure random keys
|
||||
- 🚀 Automatically download latest images and deploy
|
||||
|
||||
---
|
||||
|
||||
#### 📋 Alternative Deployment Methods
|
||||
|
||||
1. **Using Docker Hub Images (Recommended, Production First Choice)**
|
||||
|
||||
**Method 1: Standalone Deployment (No code clone required, Recommended)**
|
||||
|
||||
Reference in New Issue
Block a user