My next js app take 35+ min to get deploy on aws ecs.
Unanswered
Giant panda posted this in #help-forum
Giant pandaOP
Hi, i have a next js app that is dockerized, i deploy this image in a ECS on AWS and update the cluster with a github actions CI, the problem is that it took 35+ min to get deploy, i'm not a specialist at all of AWS and i dont know what to look to improve it, i tried to deploy on vercel and it works really fine in like 5min its online.
So do someone have any idea why it take so long or have any suggestions of improvement or even people already deploy on a ECS
Thanks a lot
So do someone have any idea why it take so long or have any suggestions of improvement or even people already deploy on a ECS
Thanks a lot
13 Replies
New Guinea Singing Dog
Are you building it on aws? It can take up quite a lot of computing power
Giant pandaOP
yeah im building it on aws
New Guinea Singing Dog
Maybe try building it before on your local PC then move the .next folder to aws?
Giant pandaOP
can i. automate this in a github actions ci ? or i have to everytime build locally and then deploy it on ECS manually ?
New Guinea Singing Dog
Perhaps? I just changed the .gitignore file to include the build files o9n my repo
Giant pandaOP
o9n ?it breaks your repo
New Guinea Singing Dog
Breaks as in too large?
Giant pandaOP
i dont know haha like what o9n means ?
New Guinea Singing Dog
Oh it was a type my bad
I move the build files onto the repo
Giant pandaOP
but you have to manually build it locally before pushing it so it can't be automate no ?
New Guinea Singing Dog
Yeah true but I'm guessing your own computer is more powerful then your AWS?
Giant pandaOP
yeah i have a M2