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
28 Replies
what node version are you using locally and what node version is railway using
what node version are you using locally?
v18.9.1
oh sorry discord absolutely bugging, it was only showing a single thumbnail of that nixpacks table and complexly left out your node version screenshot
no probleme ! 🙂
shot in the dark here, but try setting a service variable
CI
to false
I've try to "CI=false npm run build" here in build command on railway
use a service variable please
It din’t work
Almost 20 minutes of building
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?
make it public please
Done
you just leaked your database credentials, please go and regen them in the plugins settings
Thanks, done
Is this something to do with my issue ?
that was from september
I may try to build and deploy from Railway CLI
that incident is resolved, but you can try the cli
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
im not
vue-cli is deprecated btw
looks like you updated a whole lot of packages 20 hours ago, try reverting to the commit made on feb 8
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)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!
Thanks gonna try it