My Redis Deployment keeps crashing
charansegaran
TRIALOP

2 years 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.redis.host=localhost

spring.data.redis.port=6379

spring.data.redis.username=NOT_SET

spring.data.redis.password=NOT_SET

spring.data.redis.database=0

todofilepath = src/main/resources/static/todos.txt

View Deploy

3 Replies

2 years ago

You aren't using any of the connection details from your Railway hosted database in there.


charansegaran
TRIALOP

2 years ago

Would it be something like this then?

spring.redis.host=${REDISHOST}

spring.redis.port=${REDISPORT}

spring.redis.password=${REDISPASSWORD}


2 years ago

I am not aware of the valid syntax, but regardless, you would need to use the connection details provided by Railway.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...