How to overcome build time limit for Haskell projects on Heroku?

Viewed 240

I'm trying to deploy Haskell application to Heroku using the following buildpack:

The build is going well until it hits the build time limit with the following error:

-----> Timed out running buildpack Haskell
 !     Push failed

Is there any way to increase this limit or to speed up the build?

2 Answers

Just split dependencies in half and make a push with only part of the dependencies enabled. Then make a push with all of them enabled. The latter build will use cached dependencies from the former build. If the project is super heavy on dependencies it would probably require more than two steps though.

I faced a similar issue with my angular project in a VPS with 1GB ram. I solved it by building the project in my local environment first and then uploading build files to the server.

Related