Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit bab91f7

Browse files
Merge pull request #58 from thefringeninja/json
Update Dependencies
2 parents 9b10825 + 01ef57d commit bab91f7

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG CONTAINER_RUNTIME=alpine3.8
33

44
FROM node:10.12.0-alpine AS build-javascript
55
ARG CLIENT_PACKAGE=@sqlstreamstore/browser
6-
ARG CLIENT_VERSION=0.9.1
6+
ARG CLIENT_VERSION=0.9.2
77
ARG NPM_REGISTRY=https://www.myget.org/F/sqlstreamstore/npm/
88

99
ENV REACT_APP_CLIENT_VERSION=${CLIENT_VERSION}

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
set -e
44

55
CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-alpine3.8}
6-
LIBRARY_VERSION=${LIBRARY_VERSION:-1.2.0-beta.3.6}
7-
CLIENT_VERSION=${CLIENT_VERSION:-0.9.1}
6+
LIBRARY_VERSION=${LIBRARY_VERSION:-1.2.0-beta.3.12}
7+
CLIENT_VERSION=${CLIENT_VERSION:-0.9.2}
88

99
LOCAL_IMAGE="sql-stream-store-server"
1010
LOCAL="${LOCAL_IMAGE}:latest"

examples/docker-compose-postgres/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.1'
33
services:
44
sql-stream-store:
55
container_name: sss-example-server
6-
image: sqlstreamstore/server:1.2.0-beta.2-alpine3.8
6+
image: sqlstreamstore/server:1.2.0-beta.3.12-alpine3.8
77
ports:
88
- "5000:80"
99
networks:

src/SqlStreamStore.Server/Browser/SqlStreamStoreBrowserMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static IApplicationBuilder UseSqlStreamStoreBrowser(
2222
.Where(name => name.StartsWith(typeof(SqlStreamStoreBrowserMiddleware).Namespace));
2323

2424
Log.Debug(
25-
$"The following embedded resources were found and will be served as static content: {string.Join(", ", staticFiles)}");
25+
$"The following embedded resources were found and will be served as static content: {string.Join(", ", staticFiles)}");
2626

2727
return builder.Use(IndexPage).UseStaticFiles(new StaticFileOptions
2828
{

src/SqlStreamStore.Server/Program.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal class Program : IDisposable
1515

1616
public static async Task<int> Main(string[] args)
1717
{
18-
using(var program = new Program(args))
18+
using (var program = new Program(args))
1919
{
2020
return await program.Run();
2121
}
@@ -39,13 +39,14 @@ private async Task<int> Run()
3939
{
4040
try
4141
{
42-
using(var streamStore = await _factory.Create(_cts.Token))
43-
using(var host = new WebHostBuilder()
42+
using (var streamStore = await _factory.Create(_cts.Token))
43+
using (var host = new WebHostBuilder()
4444
.UseKestrel()
4545
.UseStartup(new SqlStreamStoreServerStartup(streamStore,
4646
new SqlStreamStoreMiddlewareOptions
4747
{
48-
UseCanonicalUrls = _configuration.UseCanonicalUris
48+
UseCanonicalUrls = _configuration.UseCanonicalUris,
49+
ServerAssembly = typeof(Program).Assembly
4950
}))
5051
.UseSerilog()
5152
.Build())
@@ -57,7 +58,7 @@ await Task.WhenAll(
5758
return 0;
5859
}
5960
}
60-
catch(Exception ex)
61+
catch (Exception ex)
6162
{
6263
Log.Fatal(ex, "Host terminated unexpectedly.");
6364
return 1;

0 commit comments

Comments
 (0)