Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timed out running buildpack Haskell #36

Open
chshersh opened this issue Oct 3, 2019 · 3 comments
Open

Timed out running buildpack Haskell #36

chshersh opened this issue Oct 3, 2019 · 3 comments

Comments

@chshersh
Copy link

chshersh commented Oct 3, 2019

Thanks for writing this package! It makes things more comfortable and more straightforward 🙂

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?

@popara
Copy link

popara commented Feb 7, 2020

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.

@chshersh
Copy link
Author

chshersh commented Feb 8, 2020

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

@ciukstar
Copy link

ciukstar commented Aug 23, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants