有没有工作nodejs / phantomjs Heroku buildpack? [英] Is there a working nodejs/phantomjs Heroku buildpack?
问题描述
我想部署一个应用程序,其中包含运行
web:node myapp.js
其中myapp.js使用 phantomjs-node
来运行无头webkit将结果返回给浏览器请求。这可能吗?
Heroku Toolbelt 现在拥有对多个构建包的一流支持,因此您可以通过以下方式获得工作节点和PhantomJS设置:
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs.git
heroku buildpacks:add --index 1 https://github.com/stomita/heroku-buildpack-phantomjs.git
I'd like to deploy an app with a Procfile that runs
web: node myapp.js
Where myapp.js uses phantomjs-node
to run headless webkit stuff, returning the results to browser requests. Is this possible?
Heroku Toolbelt now has first class support for multiple buildpacks, so you can get a working Node and PhantomJS setup with the following:
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-nodejs.git
heroku buildpacks:add --index 1 https://github.com/stomita/heroku-buildpack-phantomjs.git
这篇关于有没有工作nodejs / phantomjs Heroku buildpack?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!