Reorganize backend to mirror Musify.slnx folder structure
Moves the six backend projects on disk into Core/ and Hosts/ subfolders, matching the solution folders already defined in Musify.slnx, so the file explorer reflects the same layout as the solution: backend/Core/Musify.Domain backend/Core/Musify.Application backend/Core/Musify.Infrastructure backend/Hosts/Musify.Api backend/Hosts/Musify.Worker backend/Hosts/Musify.StreamingGateway Updates every reference to the old paths: ProjectReference entries in Musify.Api.csproj and Musify.Worker.csproj, the three Dockerfiles, deploy/scripts/migrate.ps1|sh, deploy/zitadel/provision.ps1, deploy/up.ps1, deploy/README.md and docs/development.md. Also fixes a stale Dockerfile comment pointing at a compose file that no longer exists. Verified with `dotnet build Musify.slnx` against the new layout.
This commit is contained in:
+3
-3
@@ -55,9 +55,9 @@ data), `-Destroy` (stop and wipe the volumes).
|
||||
### Running the apps from the IDE
|
||||
|
||||
```powershell
|
||||
dotnet run --project backend/Musify.Api # :5111
|
||||
dotnet run --project backend/Musify.StreamingGateway # :8081
|
||||
dotnet run --project backend/Musify.Worker # background
|
||||
dotnet run --project backend/Hosts/Musify.Api # :5111
|
||||
dotnet run --project backend/Hosts/Musify.StreamingGateway # :8081
|
||||
dotnet run --project backend/Hosts/Musify.Worker # background
|
||||
npm --prefix web-player run dev # :5173
|
||||
```
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
param([Parameter(Mandatory)][string]$ConnectionString)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$infraProject = Resolve-Path (Join-Path $PSScriptRoot "..\..\backend\Musify.Infrastructure")
|
||||
$infraProject = Resolve-Path (Join-Path $PSScriptRoot "..\..\backend\Core\Musify.Infrastructure")
|
||||
|
||||
# The design-time factory reads the connection string from user-secrets.
|
||||
dotnet user-secrets set "Database:ConnectionString" $ConnectionString --project $infraProject | Out-Null
|
||||
|
||||
@@ -18,7 +18,7 @@ CONN="Host=postgres;Port=5432;Database=$(env_get "$ENV_FILE" POSTGRES_DB);Userna
|
||||
docker run --rm \
|
||||
--network "$NETWORK" \
|
||||
-v "$BACKEND_DIR":/src \
|
||||
-w /src/Musify.Infrastructure \
|
||||
-w /src/Core/Musify.Infrastructure \
|
||||
-e CONN="$CONN" \
|
||||
mcr.microsoft.com/dotnet/sdk:10.0 \
|
||||
sh -c 'dotnet tool install --global dotnet-ef >/dev/null 2>&1 || true
|
||||
|
||||
+3
-3
@@ -112,9 +112,9 @@ $appLines = if ($Apps) {
|
||||
} else {
|
||||
@"
|
||||
Run the apps from the IDE (or ./up.ps1 -Apps to run them in Docker):
|
||||
dotnet run --project backend/Musify.Api # :5111
|
||||
dotnet run --project backend/Musify.StreamingGateway # :8081
|
||||
dotnet run --project backend/Musify.Worker # background
|
||||
dotnet run --project backend/Hosts/Musify.Api # :5111
|
||||
dotnet run --project backend/Hosts/Musify.StreamingGateway # :8081
|
||||
dotnet run --project backend/Hosts/Musify.Worker # background
|
||||
npm --prefix web-player run dev # :5173
|
||||
"@
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ param(
|
||||
$ErrorActionPreference = "Stop"
|
||||
$deployDir = Split-Path $PSScriptRoot -Parent
|
||||
$repoDir = Split-Path $deployDir -Parent
|
||||
$apiProject = Join-Path $repoDir "backend\Musify.Api"
|
||||
$apiProject = Join-Path $repoDir "backend\Hosts\Musify.Api"
|
||||
$webEnvFile = Join-Path $repoDir "web-player\.env"
|
||||
$envFile = if ($EnvFile) { $EnvFile } else { Join-Path $deployDir ".env" }
|
||||
$patFile = Join-Path $PSScriptRoot "$OutputDir\admin-sa.pat"
|
||||
|
||||
Reference in New Issue
Block a user