heroku-buildpack-stack
heroku-buildpack-stack copied to clipboard
Timed out running buildpack Haskell
Thanks for writing this package! It makes things more comfortable and more straightforward :slightly_smiling_face:
I have a problem when trying to deploy a Haskell package to Heroku. My project contains ~200 from Hackage. The build is going well, but unfortunately, it hits the build-time limit with the following message:
-----> Timed out running buildpack Haskell
! Push failed
Is there anything I can do to overcome this build time limit?
You should ask Heroku Support to increase your timeout limit until you build your first slug. They have did that for me couple of times.
@popara Thanks for the suggestion! For now, the workaround I'm using: pushing with half of the dependencies commented to make in time, then stack caches built dependencies, and I push again with the rest. This may require more than one step depending on how many packages you're using.
Same problem with a scaffolded Yesod application (template yesodweb/postgres).
The workaround I used is to create a new scaffolded Yesod application with the same name in another directory with yesodweb/minimal template.
Make sure the base and yesod-core packages specified in the package.yaml of the new application are the same versions as in the original application.
Push this new application to heroku (git push heroku master). This temporary application is small enough to compile under 15 minutes.
Then switch to original application and force a git push to same heroku repository (git push heroku master --force).
Delete the temporary application created with yesodweb/minimal template as it is not needed anymore. The subsequent pushes from original application to heroku will compile relatively fast.