Add Compose, Gitea deploy, and Postgres dual-backend on develop.
Use host ports 3006/8005 and 3096/8096 so Kansho does not collide with Bookstack on 3005 or the sister products. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
32acdc220b
commit
07479f6a9f
37 files changed
+1613
-102
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# Wrapper for backend/sqlite_to_postgres.py (personal data, require -Confirm).
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$Sqlite,
|
||||
[string]$MediaSrc,
|
||||
[string]$MediaDest,
|
||||
[switch]$Confirm,
|
||||
[switch]$Replace
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
Set-StrictMode -Version Latest
|
||||
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$py = Join-Path $root "backend\.venv\Scripts\python.exe"
|
||||
if (-not (Test-Path $py)) {
|
||||
$py = "python"
|
||||
}
|
||||
|
||||
$env:PYTHONUTF8 = "1"
|
||||
$argsList = @((Join-Path $root "backend\sqlite_to_postgres.py"))
|
||||
if ($Sqlite) { $argsList += @("--sqlite", $Sqlite) }
|
||||
if ($MediaSrc) { $argsList += @("--media-src", $MediaSrc) }
|
||||
if ($MediaDest) { $argsList += @("--media-dest", $MediaDest) }
|
||||
if ($Confirm) { $argsList += "--confirm" }
|
||||
if ($Replace) { $argsList += "--replace" }
|
||||
|
||||
& $py @argsList
|
||||
exit $LASTEXITCODE
|
||||
Reference in new issue
Block a user