Phantomjs integration with Google App Engine

元气小坏坏 提交于 2019-12-06 06:35:03

问题


Hi I like to know if it is possible to run phantomjs on Google App Engine.

My use case is to use Phantomjs to take snapshots of html pages served on GAE using a cron job.

Has this been done before ?


回答1:


Google App Engine supports a number of language runtimes (Java, Python, PHP and Go), but you can use the Managed VMs feature of Google App Engine to run anything in a Docker container (such as PhantomJS), and you can also use Google Compute Engine to get a VM where you can also install anything you would like, in any language.

For reference, here's a tutorial for running Node.js on Managed VMs to help guide you in the right direction.




回答2:


You cannot run phantomjs on Google App Engine.

Currently, Google App Engine supports Java, Python, PHP, and Go. (https://cloud.google.com/appengine/kb/?hl=en)

As @artjom-b mentioned you can use some services that aren't written in the supported languages (like memcache), but phantomjs is not one of them.

If you are asking about testing an application that you are building on Google App Engine, it is possible to run phantomjs tests against a google app engine application. You would just need to run phantomjs on a different service, such as an EC2 instance.



来源:https://stackoverflow.com/questions/24596355/phantomjs-integration-with-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!