Cap deploy error during deployment

While trying to deploy my application, it gets to the ‘finalizing deployment’ stage and then hangs for an hour. I then receive this error:

Deployment failed due to Failed to deploy the code to the server during "cap deploy" (the command was timed out after 1 hour)

Not really sure what this could be. Any ideas?

Is it possible that your migration is taking longer than an hour to complete? This could be the case with index migrations. If so, you could always run them manually on the server to avoid the deployment timing out. Feel free to let us know if you’re stuck on this and we can have a closer look.

You must be logged in to answer this question