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,14 +3,14 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
COPY Directory.Build.props Directory.Packages.props nuget.config ./
|
||||
COPY Musify.Domain/Musify.Domain.csproj Musify.Domain/
|
||||
COPY Musify.Application/Musify.Application.csproj Musify.Application/
|
||||
COPY Musify.Infrastructure/Musify.Infrastructure.csproj Musify.Infrastructure/
|
||||
COPY Musify.Worker/Musify.Worker.csproj Musify.Worker/
|
||||
RUN dotnet restore Musify.Worker/Musify.Worker.csproj
|
||||
COPY Core/Musify.Domain/Musify.Domain.csproj Core/Musify.Domain/
|
||||
COPY Core/Musify.Application/Musify.Application.csproj Core/Musify.Application/
|
||||
COPY Core/Musify.Infrastructure/Musify.Infrastructure.csproj Core/Musify.Infrastructure/
|
||||
COPY Hosts/Musify.Worker/Musify.Worker.csproj Hosts/Musify.Worker/
|
||||
RUN dotnet restore Hosts/Musify.Worker/Musify.Worker.csproj
|
||||
|
||||
COPY . .
|
||||
RUN dotnet publish Musify.Worker/Musify.Worker.csproj -c Release -o /app --no-restore
|
||||
RUN dotnet publish Hosts/Musify.Worker/Musify.Worker.csproj -c Release -o /app --no-restore
|
||||
# AppSettings*.json (PascalCase) -> lowercase copies for case-sensitive Linux.
|
||||
RUN cp /app/AppSettings.json /app/appsettings.json \
|
||||
&& cp /app/AppSettings.Development.json /app/appsettings.Development.json
|
||||
|
||||
Reference in New Issue
Block a user