Google 应用引擎上的服务器端 javascript
有什么方法可以在 Google App Engine 上运行 Javascript 引擎(例如 Spidermonkey)吗? Spidermonkey 是一个 C 模块,所以显然这不会工作(GAE 不允许这些类型的模块)...还有其他可用的吗?
Is there any way to run a Javascript engine, like Spidermonkey, on Google App Engine? Spidermonkey is a C module, so obviously that wont work (GAE doesn't allow those types of modules)... is there something else available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这里有一篇文章在 AppEngine/Java 上运行 Rhino。这应该能让您在 AppEngine 上实现真正的、功能齐全的 JavaScript 应用程序。
Here is an article about running Rhino on AppEngine/Java. That should get you a long way towards a real, functioning JavaScript application on AppEngine.
如果您正在寻找 JavaScript 框架(而不是从 JavaScript 调用 Java 方法),您可以尝试 RingoJS (以前称为 Helma NG)。它是一个基于 Rhino 的 JavaScript 框架,可以在 AppEngine 中运行。
还有 AppengineJS,它可以在 RingoJS 上运行(或 Narwhal,我个人没有使用过)。它是 Python SDK 的一个端口(主要进行可预测的更改以更好地适应 JavaScript 约定)。它并不完整,但在大多数情况下已经足够接近了。它比直接使用 Java API 更好用。
If you are looking for a JavaScript framework (as opposed to calling Java methods from JavaScript) you could try RingoJS (formerly Helma NG). It's a Rhino-based JavaScript framework that can run in AppEngine.
There's also AppengineJS, which can run on RingoJS (or Narwhal, which I haven't personally used). It's a port of the Python SDK (with mostly predictable changes to fit JavaScript conventions better). It's not complete, but it's close enough to work in most cases. It's nicer to use than using the Java API directly.
如果你想尝试一下,我还构建了 ApeJS 。它比竞争对手要少得多。
I've also built ApeJS if you want to try it out. It's much more minimal than the competition.
Google 现在支持 Google App Engine 上的自定义语言。所以我们可以使用 Node.js
https://www.youtube.com/watch?v=Q8jZHc0NS6A< /a>
https://developers.google.com/cloud/management-vms
Google is now supporting custom language on Google App Engine. So we can do Node.js
https://www.youtube.com/watch?v=Q8jZHc0NS6A
https://developers.google.com/cloud/managed-vms