El Queso Bandito
El Queso Bandito
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
thanks for the help pointing to the ioredis family connection thing
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
import env from '#start/env'
import { defineConfig } from '@adonisjs/redis'
import { InferConnections } from '@adonisjs/redis/types'

const redisConfig = defineConfig({
connection: 'main',

connections: {
/*
|--------------------------------------------------------------------------
| The default connection
|--------------------------------------------------------------------------
|
| The main connection you want to use to execute redis commands. The same
| connection will be used by the session provider, if you rely on the
| redis driver.
|
*/
main: {
host: env.get('REDIS_HOST'),
port: env.get('REDIS_PORT'),
password: env.get('REDIS_PASSWORD', ''),
db: 0,
family: 0,
keyPrefix: '',
retryStrategy(times) {
return times > 10 ? null : times * 50
},
},
},
})

export default redisConfig

declare module '@adonisjs/redis/types' {
export interface RedisConnections extends InferConnections<typeof redisConfig> {}
}
import env from '#start/env'
import { defineConfig } from '@adonisjs/redis'
import { InferConnections } from '@adonisjs/redis/types'

const redisConfig = defineConfig({
connection: 'main',

connections: {
/*
|--------------------------------------------------------------------------
| The default connection
|--------------------------------------------------------------------------
|
| The main connection you want to use to execute redis commands. The same
| connection will be used by the session provider, if you rely on the
| redis driver.
|
*/
main: {
host: env.get('REDIS_HOST'),
port: env.get('REDIS_PORT'),
password: env.get('REDIS_PASSWORD', ''),
db: 0,
family: 0,
keyPrefix: '',
retryStrategy(times) {
return times > 10 ? null : times * 50
},
},
},
})

export default redisConfig

declare module '@adonisjs/redis/types' {
export interface RedisConnections extends InferConnections<typeof redisConfig> {}
}
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
okay, finally figured it out it's not documented in the adonisjs/redis docs but there is a config variable for family.
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
wait, I lied actually, that doesn't work
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
fingers crossed, but looks like adding it after the PORT env variable worked 6379?family=0
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
I did, I'm not sure exactly how the adonisjs/redis package is using the ioredis connection under the hood though so I need to dig into that to figure out how to get the connection to work
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
Interesting, looks like switching to the public URL worked so I'll troubleshoot more getting the internal networking to work
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
Yes, it looks like ioredis is listed as a dependency https://github.com/adonisjs/redis/blob/develop/package.json
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
AdonisJS so using their Redis package https://docs.adonisjs.com/guides/database/redis
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
I did have a question about connecting to the Redis instance in my Adonisjs app, it seems the app can't connect to the redis.railway.internal host, are you able to take a look at that or should I start a new thread?
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
Sounds good, I'll dig into that a little more
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
Since those aren't needed in production I can just make some work around fix in testing only to grab them, was just hoping there was a simple fix
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
Just tried creating a .railwayignore file too with the same contents
tests/assets/video_versions/**
tests/assets/video_versions/f9732fd3-605c-4bf3-ab6a-d523e59ab4bf/hls/f9732fd3-605c-4bf3-ab6a-d523e59ab4bf_1080p_3Mbps_00001.ts
tests/assets/video_versions/**
tests/assets/video_versions/f9732fd3-605c-4bf3-ab6a-d523e59ab4bf/hls/f9732fd3-605c-4bf3-ab6a-d523e59ab4bf_1080p_3Mbps_00001.ts
and same issue there, looks like the files are still being viewed as part of the source code in build
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
722dccb2-d05a-4099-b21f-f525bef38d3c
28 replies
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
I tried that, looks like it still tries to read those files as UTF-8
28 replies
RRailway
Created by El Queso Bandito on 8/15/2024 in #✋|help
Adonisjs v6 app, migrations and seeder not running
👍 That did the trick!
12 replies
RRailway
Created by El Queso Bandito on 8/15/2024 in #✋|help
Adonisjs v6 app, migrations and seeder not running
ah, sorry not used to reading this output
12 replies
RRailway
Created by El Queso Bandito on 8/15/2024 in #✋|help
Adonisjs v6 app, migrations and seeder not running
Not sure why there isn't more output from the command
12 replies
RRailway
Created by El Queso Bandito on 8/15/2024 in #✋|help
Adonisjs v6 app, migrations and seeder not running
huh, kinda stumped here
Dockerfile:26

-------------------

24 | RUN npm run build

25 | RUN cd build && npm ci

26 | >>> RUN node ace migration:run --force

27 |

28 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c node ace migration:run --force" did not complete successfully: exit code: 1



Error: Docker build failed
Dockerfile:26

-------------------

24 | RUN npm run build

25 | RUN cd build && npm ci

26 | >>> RUN node ace migration:run --force

27 |

28 |

-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c node ace migration:run --force" did not complete successfully: exit code: 1



Error: Docker build failed
12 replies
RRailway
Created by El Queso Bandito on 8/15/2024 in #✋|help
Adonisjs v6 app, migrations and seeder not running
Thanks! trying that now real quick, fingers crossed
12 replies