From 54bf8bc4f8c4f90c7df809cc4b013ac7e0b612b9 Mon Sep 17 00:00:00 2001 From: Thomas Winsnes Date: Fri, 7 Dec 2018 16:39:41 +1100 Subject: [PATCH] added different template for database creation to support different collations --- Dockerfile | 2 +- db/db.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06abe7ab..e5914e56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,4 @@ COPY conf.toml ./conf.toml COPY --from=build /TechTestApp TechTestApp -ENTRYPOINT [ "./TechTestApp" ] +ENTRYPOINT [ "./TechTestApp", "serve" ] diff --git a/db/db.go b/db/db.go index 3596c356..d829bf5e 100644 --- a/db/db.go +++ b/db/db.go @@ -75,7 +75,8 @@ ENCODING = 'UTF8' LC_COLLATE = 'en_US.utf8' LC_CTYPE = 'en_US.utf8' TABLESPACE = pg_default -CONNECTION LIMIT = -1;`, cfg.DbName, cfg.DbUser) +CONNECTION LIMIT = -1; +TEMPLATE template0`, cfg.DbName, cfg.DbUser) fmt.Println(query)