From e230ae877dfb57d7d0c8abb52edc9f66f517df0c Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 25 Apr 2024 05:09:28 +0100 Subject: [PATCH] ci stuff --- .gitea/workflows/ci.yml | 2 +- pom.xml | 2 +- .../backend/service/AccountService.java | 1 - src/main/resources/application.yml | 23 +++++++++++++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/application.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 421da1c..0a787fa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -47,5 +47,5 @@ jobs: - name: Push to dokku uses: dokku/github-action@master with: - git_remote_url: "ssh://dokku@10.0.50.175:22/paste-backend" + git_remote_url: "ssh://dokku@10.0.50.175:22/ssu-backend" ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index c3d2e5f..245c4d4 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,7 @@ com.google.code.gson gson - 2.8.8 + 2.9.1 diff --git a/src/main/java/cc/fascinated/backend/service/AccountService.java b/src/main/java/cc/fascinated/backend/service/AccountService.java index 5209880..3afc29b 100644 --- a/src/main/java/cc/fascinated/backend/service/AccountService.java +++ b/src/main/java/cc/fascinated/backend/service/AccountService.java @@ -35,7 +35,6 @@ public class AccountService { this.accountRepository = accountRepository; this.scoreSaberService = scoreSaberService; - // todo: Schedule the account update task. Timer.scheduleRepeating(() -> { List accounts = accountRepository.findAll(); log.info("Updating accounts."); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..d117055 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,23 @@ +server: + address: 0.0.0.0 + port: 3005 + servlet: + context-path: / + +# Spring Configuration +spring: + # Don't include null properties in JSON + jackson: + default-property-inclusion: non_null + data: + # MongoDB - This is used for general data storage + mongodb: + uri: mongodb://localhost:27017 + database: ssu-prod + +# Set the embedded MongoDB version +de: + flapdoodle: + mongodb: + embedded: + version: 7.0.8 \ No newline at end of file