From 6d28f6d5843de0448995c43ab99ae4ca3c8ceb2e Mon Sep 17 00:00:00 2001 From: John Kovie Nino Date: Sun, 3 Mar 2024 23:57:22 +0800 Subject: [PATCH] fix: revert to default configs --- .github/workflows/fly.yml | 2 +- DBApplication/dbapp/fly.toml | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml index 9a67189..94eead6 100644 --- a/.github/workflows/fly.yml +++ b/.github/workflows/fly.yml @@ -10,6 +10,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy ./DBApplication/dbapp --remote-only --nixpacks + - run: flyctl deploy ./DBApplication/dbapp --remote-only env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/DBApplication/dbapp/fly.toml b/DBApplication/dbapp/fly.toml index 6ffecf6..32931ac 100644 --- a/DBApplication/dbapp/fly.toml +++ b/DBApplication/dbapp/fly.toml @@ -6,4 +6,30 @@ app = "hoa-dbapp" primary_region = "sin" -[[services]] \ No newline at end of file +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = true + auto_start_machines = true + +[checks] + [checks.alive] + type = "tcp" + interval = "15s" + timeout = "2s" + grace_period = "5s" + +[build] + builder = "paketobuildpacks/builder:base" + + [build.args] + BP_JVM_TYPE="JRE" + BP_JVM_VERSION="17" + BP_JAVA_INSTALL_NODE="false" + BP_MAVEN_POM_FILE="pom.xml" + BP_MAVEN_VERSION="3" + + [env] + JAVA_TOOL_OPTIONS="-Xss256K -XX:MaxDirectMemorySize=2M -XX:ReservedCodeCacheSize=32M -XX:MaxMetaspaceSize=32M -Xmx32m" + BPL_JVM_THREAD_COUNT="100" + \ No newline at end of file