2 years ago
How can I delete a table or reset my database on railway?
I want to re-migrate all my data.
62 Replies
2 years ago
you want to wipe your entire database?
2 years ago
wipe the volume then
2 years ago
yep, wipe the volume, this will give you a brand new database
2 years ago
2 years ago
in preparation of you saying something like this i had edited my above message to be clearer haha
2 years ago
for the record we wouldnt have been able to do anything anyway
probably the service is not starting because I didnt set up a redis service on railway yet
2 years ago
yeah connect ECONNREFUSED ::1:6379
this deploy hasnt started its web server so its not going to answer the health check
another question, my estimated usage went from 5 cents/mo to $2/mo when I set up redis, is that correct?
2 years ago
you set the variables, but are you consuming them in code?
export const RedisOptions: CacheModuleAsyncOptions = {
isGlobal: true,
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => {
return {
store: redisStore,
host: configService.get('REDIS_HOST'),
port: Number(configService.get('REDIS_PORT')!),
password: configService.get('REDIS_PASSWORD'),
};
},
inject: [ConfigService],
};i managed to fixed it by adding family: 0 in my redis config. it seems needs when connecting to private network2 years ago
i dont know if that would be valid syntax, but given you are getting econnrefused ::1.6379 im going to say no, that is not valid syntax
2 years ago
not necessarily, if it was valid your app would not be attempting to connect to ::1
2 years ago
thats a fallback hostname that indicates that the redis client is using its default values to attempt a redis connection, instead of using the REDIS_HOST
2 years ago
no its has nothing to do with the current error
2 years ago
awsome, what was the issue
2 years ago
you'll have that
2 years ago
makes sense, glad you got it fixed
2 years ago
no problem!