Heroku PHP和Node.js在同一个应用程序 [英] Heroku PHP and Node.js in the same app
问题描述
我使用名为 exec-php 的Node包在内执行PHP函数Node.js应用程序。
I'm using a Node package called exec-php to execute PHP functions within Node.js app.
我想将该应用程序推送到 Heroku ,但我想知道如何做到这一点,以及如何
I would like to push that app to Heroku, but I'm wondering how to make that, and how that would be in the PHP bin locally.
我正在使用 /Applications/MAMP/bin/php/php7.0.0/bin/php
。在 Heroku 中 PHP bin 的路径是什么?
I'm using /Applications/MAMP/bin/php/php7.0.0/bin/php
. What would be the path to PHP bin in Heroku?
我测试过 vendor / bin / heroku -php-apache2 但它不起作用,那么Heroku中的
I tested vendor/bin/heroku-php-apache2 but it doesn't work, so what would be the path to PHP binary in Heroku?
推荐答案
heroku中的bin目录是:.heroku / php / bin / php
The bin directory in heroku is : .heroku/php/bin/php
这篇关于Heroku PHP和Node.js在同一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!