Skip to content

Commit

Permalink
RedisConfig 및 yml 수정 (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
peeerr committed Apr 3, 2024
1 parent 58b9c4c commit b6e0606
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/peeerr/climbing/config/RedisConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/application-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ spring:

session:
store-type: redis
data:
redis:
host: localhost
port: 6379

redis:
host: localhost
port: 6379

logging:
level:
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ spring:

session:
store-type: redis
data:
redis:
host: ${REDIS_HOSTNAME}
port: 6379

redis:
host: ${REDIS_HOSTNAME}
port: 6379

logging:
level:
Expand Down

0 comments on commit b6e0606

Please sign in to comment.