SproutCore 的特定 URL
我正在 SproutCore 中创建一个应用程序,我想将其与 Facebook 集成。为此,我需要在 /
创建一个名为 xd_receiver.htm
的文件(请参阅 http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel )。但我该如何做到这一点(因此它可以在 /xd_receiver.htm
中找到)?我正在使用 sc 服务器。
谢谢。
I'm creating an application in SproutCore, which I want to integrate with Facebook. To do this, I need to create a file called xd_receiver.htm
at /
(see http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel ). But how can I do this (so it's available at /xd_receiver.htm
)? I'm using sc-server.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为不可能直接使用 sc-server 轻松提供 xd_receiver.htm 文件,但您可以在构建文件中放置一个代理(请参阅 https://sproutcore.pbworks.com/Todos+06-Building+with+Sinatra+and +DataMapper),并将其指向您提供 xd_receiver.htm 的其他 Web 服务器(例如 Apache)。
对于生产环境,出于性能原因,通常最好构建 SproutCore 应用程序(使用 sc-build),然后使用 Apache 等擅长的工具托管静态文件。然后,您只需配置 Web 服务器即可在适当的 URL 处提供 SproutCore 应用程序和 xd_receiver.htm。
I don't think it'd be possible to easily serve up the xd_receiver.htm file directly with sc-server, but you could put a proxy in your Buildfile (see "Setting Up Your Proxy" at https://sproutcore.pbworks.com/Todos+06-Building+with+Sinatra+and+DataMapper), and point it at some other web server you have (e.g. Apache) serving up xd_receiver.htm.
For production it's usually best for performance reasons to build your SproutCore app (using sc-build) and then host the static files with something that's good at that like Apache. Then you could just configure your web server to provide the SproutCore app and the xd_receiver.htm at the appropriate URLs.