有可能在Mountain Lion上通过LAN进行GAE测试网站吗? [英] Possible to test website with GAE over LAN in Mountain Lion?

查看:78
本文介绍了有可能在Mountain Lion上通过LAN进行GAE测试网站吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google App Engine托管我的网站。这是一个非常简单的网站,但我有一些JavaScript绘图到一个画布元素,我试图在我的iPhone上测试。我还想在重做我的CSS移动版时采取一些措施。但是,我无法通过手机访问 http:// localhost:8080 / (这是GoogleAppEngineLauncher在我本地运行应用程序时吐出的网址)。这似乎很明显。

不幸的是,似乎Mountain Lion已经从系统偏好中删除了网络共享首选项。我发现至少两个 不同的网站提供重新激活网络共享(Apache服务器?)的解决方案,但它们似乎都不能与Google App Engine结合使用。 。我也试过这个首选项窗格不起作用。我不断地收到Safari无法打开页面,因为它无法连接到服务器。



对不起,如果这是一个愚蠢的问题,我是一个相对noob这个东东。另外,我在这里看到很多关于SO的问题,但我认为我仍然太不熟悉,无法理解它们是如何相互关联的。是否有一个额外的步骤,这是GAE特定的,我失踪了?

解决方案

这不是特定于您的操作系统的任何东西。默认情况下,App Engine dev服务器绑定到回送接口,使其只能通过您的计算机访问。如果您想从其他机器访问它,您需要将 - address = 0.0.0.0 标志传递给开发者的偏好设置窗格中的dev服务器。


I'm hosting my website using Google App Engine. It's a pretty simple website, but I've got some javascript drawing to a canvas element, which I'm trying to test on my iPhone. I'd also like to take a crack at reworking my CSS for mobile. However, I can't access http://localhost:8080/ (which is the url that GoogleAppEngineLauncher spits out when I run the app locally) from my phone. This seems obvious.

Unfortunately, it seems that Mountain Lion has removed the web sharing preference from system preferences. I found at least two different sites with "solutions" for re-activating web sharing (Apache server?), but none of them seem to work in conjuction with Google App Engine... I also tried this preference pane, which also doesn't work. I keep getting "Safari cannot open the page because it could not connect to the server."

Sorry if this is a stupid question, I'm a relative noob to this stuff. Also, I see a lot of questions here on SO which seem related, but I think I'm still too uninitiated to understand how they're releated. Is there an extra step here that's GAE specific which I'm missing?

解决方案

This isn't anything specific to your OS. By default, the App Engine dev server binds to the loopback interface, making it accessible only to your machine. If you want to access it from other machines, you need to pass the --address=0.0.0.0 flag to the dev server - which you can do in the launcher's preference pane.

这篇关于有可能在Mountain Lion上通过LAN进行GAE测试网站吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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