diff --git a/anythink_ack.sh b/anythink_ack.sh deleted file mode 100755 index f9ad5a0..0000000 --- a/anythink_ack.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# change ports visibility to public to avoid CORS issues -if [ -n "$CODESPACE_NAME" ]; then - .devcontainer/open_port.sh >/dev/null 2>&1 -fi - -echo "Welcome to" -echo " _ _ _ _ _ " -echo " / \ _ __ _ _ | |_ | |__ (_) _ __ | | __ " -echo " / _ \ | '_ \ | | | | | __| | '_ \ | | | '_ \ | |/ / " -echo " / ___ \ | | | | | |_| | | |_ | | | | | | | | | | | < " -echo " /_/ \_\ |_| |_| \__, | \__| |_| |_| |_| |_| |_| |_|\_\ " -echo " |___/ " - -echo '\n\e]8;;https://app.wilco.gg/chat\e\\Click here\e]8;;\e\\ to go back to Snack' diff --git a/backend/build.gradle b/backend/build.gradle index 7991a98..c034e0f 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -36,6 +36,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-hateoas' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation 'org.springframework.boot:spring-boot-devtools' implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2' implementation 'com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter:4.9.21' diff --git a/backend/start.sh b/backend/start.sh new file mode 100755 index 0000000..b405727 --- /dev/null +++ b/backend/start.sh @@ -0,0 +1,6 @@ +./gradlew -i bootRun & + +while true; do + inotifywait -e modify,create,delete,move -r ./src/ && \ + ./gradlew -i assemble +done diff --git a/docker-compose.yml b/docker-compose.yml index 4332b94..17f2aad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: anythink-backend-java: build: ./backend container_name: anythink-backend-java - command: sh -c "cd backend && /wait-for-it.sh postgres-java:5432 -q -t 60 && ./gradlew bootRun" + command: sh -c "cd backend && /wait-for-it.sh postgres-java:5432 -q -t 60 && ./start.sh" environment: - PORT=3000