From 1c263e20498102f0784761ff1f30dacc2d653780 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Sun, 16 Jul 2023 21:43:10 -0400 Subject: [PATCH] Added deploy script. --- build-and-deploy.sh | 6 ++++++ source/app.d | 1 + 2 files changed, 7 insertions(+) create mode 100755 build-and-deploy.sh diff --git a/build-and-deploy.sh b/build-and-deploy.sh new file mode 100755 index 0000000..31381af --- /dev/null +++ b/build-and-deploy.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +dub clean +dub build --build=release +scp create-schematic-gen-site root@134.209.223.55:/opt/create-schematic-gen-site/ +ssh -f root@134.209.223.55 'systemctl restart csgs' diff --git a/source/app.d b/source/app.d index d9d3b1c..0d324a1 100644 --- a/source/app.d +++ b/source/app.d @@ -14,6 +14,7 @@ const EXTRACT_COMMAND = ["java", "-jar", "materials-extractor-v1.0.0.jar"]; void main() { auto provider = new shared DefaultProvider(true, Levels.INFO); configureLoggingProvider(provider); + info("Starting create-schematic-gen-site API."); ServerConfig config = ServerConfig.defaultValues(); config.workerPoolSize = 3;