Builds are super slow
devenbhooshan
PROOP

23 days ago

the stage-0 is takign so much time more than 10 minutes. how can I improve this?

Solved

24 Replies

medim
MODERATOR

23 days ago

Hey! Do you have a nixpacks file on your project?


medim
MODERATOR

23 days ago

Otherwise it would use Railpack, the new builder.


iloveitaly
HOBBY

23 days ago

@devenbhooshan yeah, that looks like nixpacks. It's deprecated, but you have to manually switch to the new builder in your railway settings if this is an older project. Give that a shot and let me know if it works.


devenbhooshan
PROOP

22 days ago

it didn't help!!

1463978847119736800



brody
EMPLOYEE

22 days ago

Your build with Railpack is online. Can you explain what didn't work?


devenbhooshan
PROOP

22 days ago

I mean it is still taking time. Sorry for the vague statement!


devenbhooshan
PROOP

22 days ago

But now the steps that takes time are only npm install and npm build!

1464095053046874000


passos
MODERATOR

22 days ago

Hey, how does your package.json look like? Do you have many dependencies that justify the longer build times?


devenbhooshan
PROOP

22 days ago

ya. it is huge.


devenbhooshan
PROOP

22 days ago

there are many dependencies.


devenbhooshan
PROOP

22 days ago

I think I need to make some improvements!


devenbhooshan
PROOP

22 days ago

Closing this!!!

thanks


passos
MODERATOR

22 days ago

Is there any way you could give us an approximate count or even the dependencies themselves? Can help us define that "many are"


devenbhooshan
PROOP

22 days ago

1 sec


devenbhooshan
PROOP

22 days ago


devenbhooshan
PROOP

22 days ago


passos
MODERATOR

22 days ago

Thanks!


passos
MODERATOR

22 days ago

Also, I see that you're using npm as a package manager. It's known that npm is not super efficient in installing dependencies. Have you considered yarn, pnpm, or bun? I would recommend pnpm if you're indecisive.


devenbhooshan
PROOP

22 days ago

ya! will explore this


passos
MODERATOR

22 days ago

For the build phase, I'm afraid there's not much we can do here as those can take a while depending on the project.


devenbhooshan
PROOP

22 days ago

ya. I can understand!


devenbhooshan
PROOP

22 days ago

thanks for the help


passos
MODERATOR

22 days ago

No problem!


Status changed to Solved passos 22 days ago


Loading...