[Prod] More logging #4

Merged
thomas.nuyken merged 7 commits from main into production 2025-07-21 21:25:22 +02:00
3 changed files with 11 additions and 2 deletions
Showing only changes of commit 9f2c5db825 - Show all commits

View File

@@ -3,7 +3,6 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start:withInstall": "pnpm install && pnpm run start",
"start": "run-script-os", "start": "run-script-os",
"start:win32": "ng serve --port %PORT% --configuration development", "start:win32": "ng serve --port %PORT% --configuration development",
"start:default": "ng serve --port $PORT --configuration development", "start:default": "ng serve --port $PORT --configuration development",

View File

@@ -23,7 +23,7 @@ IResourceBuilder<ProjectResource> api = builder
.WaitFor(postgres); .WaitFor(postgres);
builder builder
.AddNpmApp("Vegasco-Web", "../Vegasco-Web", scriptName: "start:withInstall") .AddNpmApp("Vegasco-Web", "../Vegasco-Web")
.WithReference(api) .WithReference(api)
.WaitFor(api) .WaitFor(api)
.WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false) .WithHttpEndpoint(port: 44200, env: "PORT", isProxied: false)

View File

@@ -25,4 +25,14 @@
<ProjectReference Include="..\Vegasco.Server.Api\Vegasco.Server.Api.csproj" /> <ProjectReference Include="..\Vegasco.Server.Api\Vegasco.Server.Api.csproj" />
</ItemGroup> </ItemGroup>
<Target Name="RestoreNpm" BeforeTargets="Build" Condition=" '$(DesignTimeBuild)' != 'true' ">
<ItemGroup>
<PackageJsons Include="..\*\package.json" />
</ItemGroup>
<!-- Install npm packages if node_modules is missing -->
<Message Importance="Normal" Text="Installing npm packages for %(PackageJsons.RelativeDir)" Condition="!Exists('%(PackageJsons.RootDir)%(PackageJsons.Directory)/node_modules')" />
<Exec Command="pnpm install" WorkingDirectory="%(PackageJsons.RootDir)%(PackageJsons.Directory)" Condition="!Exists('%(PackageJsons.RootDir)%(PackageJsons.Directory)/node_modules')" />
</Target>
</Project> </Project>