Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

  • https://github.com/mfine/heroku-buildpack-stack

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?

like image 210
Shersh Avatar asked Oct 04 '19 14:10

Shersh


People also ask

What are the limitations of Heroku?

Users are limited to a rolling window of 75 requests to Heroku Git repos per hour, per app, per user. The uncompressed size of a checkout of HEAD from the repo, combined with the size of restored submodules, cannot exceed 1 GB.

How long does it take Heroku to deploy?

Over the past four years, the Heroku Runtime team has transitioned from occasional, manual deployments to continuous, automated deployments. Changes are now rolled out globally within a few hours of merging any change—without any human intervention.

How many projects can I host on Heroku for free?

A 'Free' tier Heroku account allows up to 5 apps.

Is Heroku free forever?

Maximize your free platform services Get 1000 free dyno hours by verifying your Heroku account with a credit card; unverified accounts receive 550 free hours. You will not be charged, unless you decide to use a paid service.


1 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.

like image 83
Mikhail Melnik Avatar answered Oct 26 '22 23:10

Mikhail Melnik