Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Pathgather/heroku-buildpack-libgraphqlparser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Installing libgraphqlparser on Heroku

This buildpack will install libgraphqlparser on Heroku.

Usage

Getting libgraphqlparser working on Heroku is a pretty big pain. But these steps will hopefully help.

Configure buildpacks

Set your app to use heroku-buildpack-multi.

Then create a file in your repo root called .buildpacks. You need to add this to the beginning:

https://github.com/ddollar/heroku-buildpack-apt
https://github.com/goco-inc/heroku-buildpack-libgraphqlparser.git

Next, create a file in your repo root called Aptfile, and put this in it:

cmake
flex

Using the graphql-libgraphqlparser gem

I created this buildpack so that I could use the graphql-libgraphqlparser gem at GoCo. To get that gem to work, you need a few more things:

Heroku Bundle Config

You need to add the heroku-bundle-config buildpack to your app. Here's a complete .buildpacks file example:

https://github.com/ddollar/heroku-buildpack-apt
https://github.com/goco-inc/heroku-buildpack-libgraphqlparser.git
https://github.com/timolehto/heroku-bundle-config.git
https://github.com/heroku/heroku-buildpack-ruby

Then create a file in your repo root called .heroku-bundle/config, and put this in it:

---
BUNDLE_BUILD__GRAPHQL-LIBGRAPHQLPARSER: "--with-graphql-include=/app/libgraphqlparser/include/graphqlparser
  --with-graphql-lib=/app/libgraphqlparser/lib"

Finally, at runtime, Ruby needs to know to look for the binaries in a non-standard location. To do that, set the LD_LIBRARY_PATH environment variable to something like this:

/app/.heroku/vendor/lib:/app/libgraphqlparser/lib

That should be all you need!

About

Heroku Buildpack that installs libgraphqlparser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%