diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6b1b3ce..0f1ad7a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,7 +45,7 @@ jobs: spring.datasource.url: ${{ secrets.DB_URL }} spring.datasource.username: ${{ secrets.DB_USERNAME }} spring.datasource.password: ${{ secrets.DB_PASSWORD }} - spring.data.redis.host: ${{ secrets.REDIS_HOSTNAME }} + redis.host: ${{ secrets.REDIS_HOSTNAME }} - name: Grant execute permission to gradlew run: chmod +x ./gradlew diff --git a/src/main/java/com/peeerr/climbing/config/RedisConfig.java b/src/main/java/com/peeerr/climbing/config/RedisConfig.java index 1f6b2d0..054977d 100644 --- a/src/main/java/com/peeerr/climbing/config/RedisConfig.java +++ b/src/main/java/com/peeerr/climbing/config/RedisConfig.java @@ -11,10 +11,10 @@ @Configuration public class RedisConfig { - @Value("${spring.data.redis.host}") + @Value("${redis.host}") private String host; - @Value("${spring.data.redis.port}") + @Value("${redis.port}") private int port; @Bean diff --git a/src/main/resources/application-ci.yml b/src/main/resources/application-ci.yml index a29f71d..8314e7b 100644 --- a/src/main/resources/application-ci.yml +++ b/src/main/resources/application-ci.yml @@ -27,10 +27,10 @@ spring: session: store-type: redis - data: - redis: - host: localhost - port: 6379 + +redis: + host: localhost + port: 6379 logging: level: diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index a2452e2..f697383 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -28,10 +28,10 @@ spring: session: store-type: redis - data: - redis: - host: ${REDIS_HOSTNAME} - port: 6379 + +redis: + host: ${REDIS_HOSTNAME} + port: 6379 logging: level: