Giter Site home page Giter Site logo

heroku-buildpack-libgraphqlparser's Introduction

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!

heroku-buildpack-libgraphqlparser's People

Contributors

chanks avatar theorygeek avatar

Watchers

 avatar James Cloos avatar Eric Duffy avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.