Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在我自己的服务器上托管Google应用程序引擎应用程序_Python_Google App Engine - Fatal编程技术网

Python 在我自己的服务器上托管Google应用程序引擎应用程序

Python 在我自己的服务器上托管Google应用程序引擎应用程序,python,google-app-engine,Python,Google App Engine,以下是可能的吗 我想主持的应用程序,处理来自URL的Favicon,就像getFavicon一样 网站:来源: 上周我给创作者发了电子邮件询问这篇文章的标题,但没有回复。我发现涉及到很多Python,简单地将文件放在我的服务器上并没有任何作用。我发现为node.JS编写了一些类似的东西,并在这里分叉: 编辑:此代码满足了我最初的请求,即加载favicons,无论URL是什么: var getFavicon = function () { var favicon, _tabID = $(

以下是可能的吗

我想主持的应用程序,处理来自URL的Favicon,就像getFavicon一样

网站:来源:

上周我给创作者发了电子邮件询问这篇文章的标题,但没有回复。我发现涉及到很多Python,简单地将文件放在我的服务器上并没有任何作用。

我发现为node.JS编写了一些类似的东西,并在这里分叉:

编辑:此代码满足了我最初的请求,即加载favicons,无论URL是什么:

var getFavicon = function () {

    var favicon, _tabID = $(".tab.active").attr("data-tab");
    var nodeList = $("iframe" + _tabID).contents().find("link");

    for (var i = 0; i < nodeList.length; i++) {
        // get any type of icon
        if ((nodeList[i].getAttribute("rel") == "icon") || (nodeList[i].getAttribute("rel") == "shortcut icon") || (nodeList[i].getAttribute("rel") == "apple-touch-icon")) {
            favicon = nodeList[i].href; // get absolute path
        }
    }

    return favicon;

};

使用Google App Engine,您可以在本地计算机上作为虚拟机运行它,并连接到启动它的任何端口,选项0.0.0.0为ip。例如,这对于测试Flask应用程序很方便。@BHM这很好,但我更愿意在自己的服务器上运行它。你永远不知道谷歌什么时候会关闭服务,我宁愿依靠自己。然后我会说答案是不可能的,但我想知道这个问题的意义是什么?为什么要为一个你不信任框架提供商的框架制作一些东西?@BHM我没有制作这个应用程序,我不想使用这个框架。我想知道如何设置我的服务器,以便它可以运行应用程序。对不起;但这并不是我所期望的问题。如何实现这些功能取决于框架提供商提供的功能。