Compare commits
28 Commits
master
...
26e0676608
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26e0676608 | ||
|
|
f5ffd33bf8 | ||
|
|
9276aa988c | ||
|
|
63c6a6f393 | ||
|
|
5e896e112c | ||
|
|
fe80932db0 | ||
|
|
8dbdbca9a3 | ||
|
|
ef3ab20fff | ||
|
|
2498c9525d | ||
|
|
97459ccd1d | ||
|
|
f554b52024 | ||
|
|
adc86c0e96 | ||
|
|
547413787a | ||
|
|
fb3f5f36f1 | ||
|
|
65bd4e69df | ||
|
|
226d590890 | ||
|
|
ffbe6d9c04 | ||
|
|
5586d29a20 | ||
|
|
8999be2b8a | ||
|
|
d99ec3f0b7 | ||
|
|
8108e5c7ea | ||
|
|
d1ae132076 | ||
|
|
1fb196bce1 | ||
|
|
bf89d63aec | ||
|
|
f9c7e69ca2 | ||
|
|
8a22f1e159 | ||
|
|
a816f99118 | ||
|
|
2525790303 |
@@ -1,2 +1,2 @@
|
||||
web: run-web.sh
|
||||
silo: run-silo.sh
|
||||
web: /app/pushy/Pushy.dll
|
||||
silo: silo/Pushy.Silo.dll
|
||||
@@ -25,8 +25,6 @@ WORKDIR "/src/Pushy/Pushy"
|
||||
RUN dotnet build "Pushy.csproj" --no-restore -c $BUILD_CONFIGURATION -o /app/pushy
|
||||
|
||||
COPY .dokku/Procfile /app/.dokku/Procfile
|
||||
COPY run-silo.sh /app/run-silo.sh
|
||||
COPY run-web.sh /app/run-web.sh
|
||||
|
||||
FROM build AS publish
|
||||
ARG BUILD_CONFIGURATION=Release
|
||||
@@ -42,6 +40,7 @@ FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
COPY --from=publish /app/.dokku /app/.dokku
|
||||
COPY --from=publish /app/*.sh /app/
|
||||
|
||||
ENTRYPOINT ["sh"]
|
||||
RUN ls -la
|
||||
|
||||
ENTRYPOINT ["dotnet"]
|
||||
|
||||
@@ -2,6 +2,3 @@ branches:
|
||||
main:
|
||||
regex: ^master$|^main$
|
||||
mode: ContinuousDelivery
|
||||
develop:
|
||||
regex: ^develop$
|
||||
mode: ContinuousDelivery
|
||||
@@ -22,7 +22,5 @@ builder.UseOrleans(silo =>
|
||||
});
|
||||
});
|
||||
|
||||
builder.Services.AddAllElasticApm();
|
||||
|
||||
var host = builder.Build();
|
||||
host.Run();
|
||||
@@ -6,12 +6,9 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>dotnet-Pushy.Silo-607fe096-6d3f-44f4-8e5d-8a2c875f8758</UserSecretsId>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
<Title>Pushy Silo</Title>
|
||||
<Authors>Henrik Lassen</Authors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Elastic.Apm.NetCoreAll" Version="1.31.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0"/>
|
||||
<PackageReference Include="Microsoft.Orleans.Clustering.Redis" Version="9.0.1" />
|
||||
<PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="9.0.1" />
|
||||
|
||||
@@ -4,8 +4,5 @@
|
||||
"Default": "Information",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"ElasticApm": {
|
||||
"ServerUrl": "http://apm.home.local:8200"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
|
||||
<PackageReference Include="UnitsNet" Version="5.61.0" />
|
||||
<PackageReference Include="UnitsNet" Version="5.60.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -14,12 +14,11 @@
|
||||
<link rel="stylesheet" href="@Assets["app.tailwind.css"]"/>
|
||||
<link rel="stylesheet" href="@Assets["Pushy.styles.css"]"/>
|
||||
<HeadOutlet/>
|
||||
<ImportMap/>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<Routes/>
|
||||
<script src="_framework/blazor.web.js"></script>
|
||||
<script src="@Assets["_framework/blazor.web.js"]"></script>
|
||||
@if (Agent.Configuration.Enabled && Environment.IsProduction())
|
||||
{
|
||||
<script src="@Assets["elastic-apm-rum.umd.min.js"]"></script>
|
||||
|
||||
@@ -51,11 +51,11 @@ if (builder.Environment.IsProduction())
|
||||
opt.Transport = new DistributedTransport(transport);
|
||||
});
|
||||
}
|
||||
builder.Services.AddAllElasticApm();
|
||||
|
||||
builder.Services.AddScoped(service =>
|
||||
service.GetRequiredService<IClusterClient>().GetGrain<ILinkGenerator>(Guid.Empty)
|
||||
);
|
||||
builder.Services.AddAllElasticApm();
|
||||
|
||||
builder.Services.AddHealthChecks();
|
||||
builder.Services.AddCors(policy =>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="9.0.1" />
|
||||
<PackageReference Include="Microsoft.Orleans.Reminders.Redis" Version="9.0.1" />
|
||||
<PackageReference Include="System.Text.Json" Version="9.0.0" />
|
||||
<PackageReference Include="UnitsNet" Version="5.61.0" />
|
||||
<PackageReference Include="UnitsNet" Version="5.60.0" />
|
||||
<ProjectReference Include="..\..\Pushy.Domain\Pushy.Domain.csproj" />
|
||||
<ProjectReference Include="..\Pushy.Client\Pushy.Client.csproj"/>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0" />
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/CodeInspection/WebPathMapping/MappedPaths/=WWWROOT_005C_005FFRAMEWORK_005CBLAZOR_002EWEB_002EJS/@EntryIndexedValue"></s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/WebPathMapping/PathsInCorrectCasing/=WWWROOT_005C_005FFRAMEWORK_005CBLAZOR_002EWEB_002EJS/@EntryIndexedValue">wwwroot\_framework\blazor.web.js</s:String></wpf:ResourceDictionary>
|
||||
@@ -7,7 +7,8 @@
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"ElasticApm": {
|
||||
"ElasticApm":
|
||||
{
|
||||
"ServerUrl": "http://apm.home.local:8200",
|
||||
"TransactionNameGroups": "GET /t/*"
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
cd /app/silo
|
||||
dotnet Pushy.Silo.dll
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
cd /app/pushy
|
||||
dotnet Pushy.dll
|
||||
Reference in New Issue
Block a user