neo4jrb / activegraph

An active model wrapper for the Neo4j Graph Database for Ruby.
http://neo4jrb.io
MIT License
1.39k stars 276 forks source link

Deploying to Heroku #1631

Closed johanandre closed 3 years ago

johanandre commented 3 years ago

Is there anyone else getting build error on Heroku?

 !     LoadError: Could not open library 'libseabolt17': libseabolt17: cannot open shared object file: No such file or directory.
 !     Could not open library 'libseabolt17.so': libseabolt17.so: cannot open shared object file: No such file or directory

Am I missing a buildpack or something?

The app is a Rails 6.0.3.4 application with:

gem 'neo4j-rake_tasks'
gem 'activegraph', '~> 10.0.1'
gem 'neo4j-ruby-driver', '~> 1.7.0'
klobuczek commented 3 years ago

If you tested your application locally you must have followed the neo4j-ruby-driver README.

johanandre commented 3 years ago

Solved.

heroku buildpacks:add --index 1 heroku-community/apt --app YOUR_APPLICATION

Create an Aptfile in project root:

libssl1.0.0
https://github.com/neo4j-drivers/seabolt/releases/download/v1.7.4/seabolt-1.7.4-Linux-ubuntu-18.04.deb

Set an environment variable:

LD_LIBRARY_PATH=./.apt/usr/local/lib

Deploy your application...