R
Railway•8mo ago
Ginyto

Deployment Failed during build process

Hello, I'm trying to deploy but, each time it gets stuck in "building for production..." for around 20 minutes and then i am getting "Build timed out". This is the first time i'm getting this issue for this project, when i "npm run build" localy everythings work. I'm trying to have some logs but even vue cli build --verbose does not provide any information Thanks for your time ! ID -> 6d27af21-daa3-4d50-8357-6b3b69c4ff89
No description
No description
No description
28 Replies
Brody
Brody•8mo ago
what node version are you using locally and what node version is railway using
Ginyto
Ginyto•8mo ago
No description
No description
Brody
Brody•8mo ago
what node version are you using locally?
Ginyto
Ginyto•8mo ago
v18.9.1
Brody
Brody•8mo ago
oh sorry discord absolutely bugging, it was only showing a single thumbnail of that nixpacks table and complexly left out your node version screenshot
Ginyto
Ginyto•8mo ago
no probleme ! 🙂
Brody
Brody•8mo ago
shot in the dark here, but try setting a service variable CI to false
Ginyto
Ginyto•8mo ago
I've try to "CI=false npm run build" here in build command on railway
No description
Brody
Brody•8mo ago
use a service variable please
Ginyto
Ginyto•8mo ago
It din’t work
No description
Ginyto
Ginyto•8mo ago
Almost 20 minutes of building
Brody
Brody•8mo ago
damn I didn't think you'd actually wait that long if it's stuck at that stage for more than 2 minutes something is wrong can you share your repo?
Brody
Brody•8mo ago
make it public please
Ginyto
Ginyto•8mo ago
Done
Brody
Brody•8mo ago
you just leaked your database credentials, please go and regen them in the plugins settings
Ginyto
Ginyto•8mo ago
Thanks, done
Ginyto
Ginyto•8mo ago
Is this something to do with my issue ?
No description
Brody
Brody•8mo ago
that was from september
Ginyto
Ginyto•8mo ago
I may try to build and deploy from Railway CLI
No description
Brody
Brody•8mo ago
that incident is resolved, but you can try the cli
Ginyto
Ginyto•8mo ago
Are you familiar with vue cli ? I’m trying to find a way to show some logs to see what going on during build production
Brody
Brody•8mo ago
im not
Medim
Medim•8mo ago
vue-cli is deprecated btw
Brody
Brody•8mo ago
looks like you updated a whole lot of packages 20 hours ago, try reverting to the commit made on feb 8
Medim
Medim•8mo ago
and when u build for prod with it, it generate some logs thats all the logs u can get for it (just use vite or nitro for your own peace of mind, vue-cli sucks)
Brody
Brody•8mo ago
1. split your backend and frontend into separate sub folders (isolated monorepo) https://docs.railway.app/deploy/monorepo#isolated-monorepo 2. move to vite on your frontend thats your game plan, get working!
Ginyto
Ginyto•8mo ago
Thanks gonna try it