Heroku PHP和Node.js在同一个应用程序 [英] Heroku PHP and Node.js in the same app

查看:116
本文介绍了Heroku PHP和Node.js在同一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用名为 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中的 PHP二进制文件的路径是什么?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆