preparing release

This commit is contained in:
Michele 2020-11-22 21:21:08 +00:00
parent d1f543171d
commit e6b17edd36
3 changed files with 13 additions and 4 deletions

7
.drone.yml Normal file
View file

@ -0,0 +1,7 @@
kind: pipeline
steps:
- name: compile
image: microsoft/dotnet:sdk
commands:
- sh build.sh

View file

@ -27,7 +27,7 @@ RUN dotnet publish -c release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
COPY --from=build /app ./
ENTRYPOINT ["dotnet", "SignalRChat.dll"]
ENTRYPOINT ["dotnet", "Sledgemapper.dll"]
# # https://hub.docker.com/_/microsoft-dotnet-core

View file

@ -26,13 +26,14 @@ namespace Sledgemapper
SessionData = sessionData;
Connection = new HubConnectionBuilder()
.WithAutomaticReconnect()
//.WithUrl("http://hub.michelescandura.com:5000/SledgemapperHub")
.WithUrl("http://localhost:5000/SledgemapperHub", options =>
//.WithUrl("http://localhost:5000/SledgemapperHub", options =>
.WithUrl("http://hub.michelescandura.com:5000/SledgemapperHub", options =>
{
options.AccessTokenProvider = () => Task.FromResult(_authenticateResponse.Token);
})
// .WithUrl("http://hub.michelescandura.com:5000/SledgemapperHub")
.Build();
@ -40,7 +41,8 @@ namespace Sledgemapper
Api = RestService.For<IMapApi>(
new HttpClient(new AuthenticatedHttpClientHandler(GetToken))
{
BaseAddress = new Uri("http://localhost:5000")
BaseAddress = new Uri("http://hub.michelescandura.com:5000")
// BaseAddress = new Uri("http://localhost:5000")
}
);