Gaetan Dubar
Gaetan Dubar

Reputation: 4598

Execute a binary file in ruby (on Heroku)

Is it possible to execute a little binary file (required for payment processing) with Kernel#exec from a ruby app hosted on Heroku ? Or do I need to switch to another rails hosting solution ?

Upvotes: 3

Views: 1512

Answers (1)

Roja Buck
Roja Buck

Reputation: 2354

Heroku does allow for the compilation of native gems from it's gem manifests so there is a distinct possibility that you will be able to package the binary up as a gem and get heroku to run it as such. Make sure you set the binary to be executable before you push it to heroku as git is permissions aware.

Upvotes: 4

Related Questions