a year ago
How can I delete a table or reset my database on railway?
I want to re-migrate all my data.
0 Replies
a year ago
you want to wipe your entire database?
a year ago
wipe the volume then
a year ago
yep, wipe the volume, this will give you a brand new database
a year ago
a year ago
in preparation of you saying something like this i had edited my above message to be clearer haha
a year 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
a year 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?
a year 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 network
a year 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
a year ago
not necessarily, if it was valid your app would not be attempting to connect to ::1
a year 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
a year ago
no its has nothing to do with the current error
a year ago
awsome, what was the issue
a year ago
you'll have that
a year ago
makes sense, glad you got it fixed
a year ago
no problem!