Added deploy script.

This commit is contained in:
Andrew Lalis 2023-07-16 21:43:10 -04:00
parent b91e57669c
commit 1c263e2049
2 changed files with 7 additions and 0 deletions

6
build-and-deploy.sh Executable file
View File

@ -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'

View File

@ -14,6 +14,7 @@ const EXTRACT_COMMAND = ["java", "-jar", "materials-extractor-v1.0.0.jar"];
void main() { void main() {
auto provider = new shared DefaultProvider(true, Levels.INFO); auto provider = new shared DefaultProvider(true, Levels.INFO);
configureLoggingProvider(provider); configureLoggingProvider(provider);
info("Starting create-schematic-gen-site API.");
ServerConfig config = ServerConfig.defaultValues(); ServerConfig config = ServerConfig.defaultValues();
config.workerPoolSize = 3; config.workerPoolSize = 3;