El Queso Bandito
El Queso Bandito
RRailway
Created by El Queso Bandito on 11/15/2024 in #✋|help
Railway ignore and HLS .ts files
For my Adonisjs Typescript app I'm working with video files that are transcoded into HLS, as part of the transcoding process from .mp4, .mov, etc into HLS, the output is .m3u8 playlist files, which are text file manifests containing links to the other playlist and video files and .ts files which are segments of the transcoded video. For testing purposes I have an already transcoded video saved in my Repo so that I can bypass the transcoding process when testing other parts of my app, but this is causing build errors in Railway, I'm assuming it's because the build process is attempting to parse the .ts files with a type of MPEG transport stream data and treating those as Typescript files. I have those files in a tests/assets/ directory in my repo. I've seen mention of a .railwayignore file and found the "Configure Watch Paths" option, but that looks like it only controls what files to watch for changes when running builds. I was hoping to find a way to have Railway ignore the tests/ directory altogether in the build process but wasn't sure if that's possible.
28 replies
RRailway
Created by El Queso Bandito on 8/15/2024 in #✋|help
Adonisjs v6 app, migrations and seeder not running
I've been able to succesfully build and deploy my Adonisjs v6 app, with the below nixpack, the only issue that I'm running into now is that I can't login since my initial migrations didn't run and I'm not sure why since it looks like that should've been part of the build. I'm relatively new to nixpacks so any pointers or tips would be appreciated
[phases.setup]
nixpkgs = [
"nodejs_22",
"postgresql_13"
]

[phases.install]
cmds = [
"npm ci"
]

[phases.build]
cmds = [
"npm run build",
"cd build && npm ci",
"node ace migration:run"
]

[start]
cmd = "node ace serve"
[phases.setup]
nixpkgs = [
"nodejs_22",
"postgresql_13"
]

[phases.install]
cmds = [
"npm ci"
]

[phases.build]
cmds = [
"npm run build",
"cd build && npm ci",
"node ace migration:run"
]

[start]
cmd = "node ace serve"
12 replies
RRailway
Created by El Queso Bandito on 7/29/2024 in #✋|help
Volumes and tmp storage space
I'm working on an Adonisjs v6 project that's a media app handling large video files, most of the files will be manageable 150-200mb or less, but in the outside chance that user's try to upload significantly larger files multiple gb, would I have to use a volume, and then I'm limited by the volume restrictions by my account tier? 5gb what are my options for processing file uploads on the server? I'm using S3 for long term storage, but Adonis has built in validators for multipart file uploads and if possible I'd like to keep the upload code as simple as possible for now, and also, that leaves the door open to do some processing and validation with ffmpeg if I wanted. I know s3 presigned urls are also an option later on, but was wondering if anyone had any insights into working with large files on railway deployments
16 replies
RRailway
Created by El Queso Bandito on 9/8/2023 in #✋|help
Adonisjs Migration - MySQL using password no
No description
27 replies