a year ago
Hi, I am new to railway and I am not sure why I cannot connect to Redis through railway.
This are my settings in the application-properties file in my Spring-Boot application:
spring.application.name=ssf-practice-workshop
server.port=3000
[spring.data](spring.data).redis.host=localhost
spring.data.redis.port=6379
spring.data.redis.username=NOTSET spring.data.redis.password=NOTSET
spring.data.redis.database=0
todofilepath = src/main/resources/static/todos.txt
3 Replies
a year ago
You aren't using any of the connection details from your Railway hosted database in there.
a year ago
Would it be something like this then?
spring.redis.host=${REDISHOST}
spring.redis.port=${REDISPORT}
spring.redis.password=${REDISPASSWORD}
a year ago
I am not aware of the valid syntax, but regardless, you would need to use the connection details provided by Railway.