小编Mat*_* E.的帖子

在Heroku上运行Phantomjs +节点时遇到问题

我已成功让Phantomjs在Heroku上工作,但现在我遇到了node.js的phantomjs-node接口问题(请参阅https://github.com/sgentle/phantomjs-node).

当我试图初始化Phantom时,我看到了10-15秒的延迟,然后:

> phantom stdout: ReferenceError: Can't find variable: socket

phantom stdout:   phantomjs://webpage.evaluate():1
  phantomjs://webpage.evaluate():1
  phantomjs://webpage.evaluate():1
Run Code Online (Sandbox Code Playgroud)

您可以通过以下步骤重现问题,或者通过https://github.com/matellis/phantom-test下载我的测试应用程序

git init phantom-test
cd phantom-test
heroku apps:create
# create node app as per Heroku instructions here https://devcenter.heroku.com/articles/nodejs
# copy bin and lib folders from http://phantomjs.googlecode.com/files/phantomjs-1.6.1-linux-x86_64-dynamic.tar.bz2 into root of your new project
# if you don't do this step you'll get an error "phantom stderr: execvp(): No such file or directory"
git add .
git commit -m "init"
git push heroku …
Run Code Online (Sandbox Code Playgroud)

heroku node.js phantomjs

13
推荐指数
1
解决办法
2637
查看次数

Highcharts饼图标签阈值

使用HighCharts饼图时,是否有消除或聚合标签低于某个阈值的首选方法?如果可以的话,我宁愿不必将低于某个百分比的所有值汇总到"其他".我检查了文档但找不到任何东西.这将非常有用!

谢谢你的期待.

highcharts

5
推荐指数
1
解决办法
4668
查看次数

标签 统计

heroku ×1

highcharts ×1

node.js ×1

phantomjs ×1