I have a rails application that uses php code. I am calling the php code directly with a system call 'php path/to/script.php'
This works fine on my local machine where I have php installed. I'm looking to deploy this to somewhere like Heroku. To solve this problem, I am using the multibuildpack Github library:
github.com/ddollar/heroku-buildpack-multi
I have specified in my .buildpacks
https://github.com/heroku/heroku-buildpack-php.git https://github.com/heroku/heroku-buildpack-ruby.git
and both install just fine. The problem is that Heroku treats the application like a php application. On the Heroku logs, it states that it is using the php configuration and is starting php-fpm when I want it to run as a rails application.
How do I go about fixing this? Specifically, how do I make sure that php is ready on Heroku when I make the system call