From d38457bbb47877e4bef6902007a81b2e5597013c Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Fri, 20 Sep 2024 14:52:42 +0200 Subject: [PATCH] chore: make start_dev.sh maintainable by breaking lines (#2853) --- backend/start_dev.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/backend/start_dev.sh b/backend/start_dev.sh index 76cfa5906..f228bf5e4 100755 --- a/backend/start_dev.sh +++ b/backend/start_dev.sh @@ -1,2 +1,17 @@ #! /bin/sh -./gradlew bootRun --args="--spring.datasource.url=jdbc:postgresql://localhost:5432/loculus --spring.datasource.username=postgres --spring.datasource.password=unsecure --loculus.config.path=../website/tests/config/backend_config.json --loculus.debug-mode=true --spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:8083/realms/loculus/protocol/openid-connect/certs --keycloak.user=backend --keycloak.password=backend --keycloak.realm=loculus --keycloak.client=backend-client --keycloak.url=http://localhost:8083" + +args=$(printf "%s " \ + "--spring.datasource.url=jdbc:postgresql://localhost:5432/loculus" \ + "--spring.datasource.username=postgres" \ + "--spring.datasource.password=unsecure" \ + "--loculus.config.path=../website/tests/config/backend_config.json" \ + "--loculus.debug-mode=true" \ + "--spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:8083/realms/loculus/protocol/openid-connect/certs" \ + "--keycloak.user=backend" \ + "--keycloak.password=backend" \ + "--keycloak.realm=loculus" \ + "--keycloak.client=backend-client" \ + "--keycloak.url=http://localhost:8083" +) + +./gradlew bootRun --args="$args"