-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.ps1
More file actions
28 lines (24 loc) · 891 Bytes
/
dev.ps1
File metadata and controls
28 lines (24 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# dev.ps1 — Single-command development runner for Windows PowerShell
# Starts the API with SQLite embedded database (no Postgres, Redis, or Docker needed).
#
# Usage:
# .\dev.ps1 # API only on :8080
# .\dev.ps1 -Port 9090 # custom port
# .\dev.ps1 -Component all # API + worker (requires Redis + Docker)
#
param(
[string]$Port = "8080",
[string]$Component = "api",
[string]$DbPath = "pushpaka-dev.db"
)
$env:APP_ENV = "development"
$env:DATABASE_DRIVER = "sqlite"
$env:DATABASE_URL = $DbPath
$env:PUSHPAKA_COMPONENT = $Component
$env:LOG_LEVEL = "debug"
$env:PORT = $Port
if (-not $env:JWT_SECRET) {
$env:JWT_SECRET = "dev-secret-change-in-production"
}
Write-Host "Pushpaka dev mode: component=$Component db=$DbPath port=$Port" -ForegroundColor Cyan
go run ./cmd/pushpaka