ianks / mini_phone

A fast phone number parser, validator and formatter for Ruby. This gem binds to Google's C++ libphonenumber for spec-compliance and performance.
MIT License
160 stars 8 forks source link

heroku installation/usage #8

Closed gagalago closed 2 years ago

gagalago commented 3 years ago

I tried to use this gem on an application hosted on heroku but as this gem depend one libphonenumber, I was not able to build the application on heroku. Do you know how I can be able to do it?

ianks commented 3 years ago

i'm not familiar with heroku specifically, but you would need to install the libphonenumber-dev debian package. there is some info here on how to accomplish that.

let me know if you are able to do it!

espen commented 2 years ago

Here how to do it:

Add the apt buildpack to your app: heroku buildpacks:add --index 1 heroku-community/apt

Then in your repo add a Aptfile file with content: libphonenumber-dev

Perphaps this should be added to the readme or wiki?

ianks commented 2 years ago

I would totally accept a PR for that @espen