# Gooneral Wheelchair - One-Line Deployment
# Usage: .\deploy-now.ps1 -Domain "yourdomain.com" [-ServerHost "your.server.ip"] [-ServerUser "username"]

param(
    [Parameter(Mandatory=$true)]
    [string]$Domain,
    
    [Parameter(Mandatory=$false)]
    [string]$ServerHost,
    
    [Parameter(Mandatory=$false)]
    [string]$ServerUser = "root"
)

if ($ServerHost) {
    Write-Host "🚀 Running full deployment to server..." -ForegroundColor Green
    & .\prepare-deployment.ps1 -Domain $Domain -ServerHost $ServerHost -ServerUser $ServerUser -UploadToServer
} else {
    Write-Host "📦 Preparing deployment package..." -ForegroundColor Green
    & .\prepare-deployment.ps1 -Domain $Domain
    
    Write-Host ""
    Write-Host "✨ Want to deploy directly to your server?" -ForegroundColor Yellow
    Write-Host "Run: .\deploy-now.ps1 -Domain '$Domain' -ServerHost 'your.server.ip' -ServerUser 'username'" -ForegroundColor Gray
}