我正在看两篇关于如何对接金字塔应用程序的文章。我对Python不是很熟悉,但我相当肯定,对于一个金字塔应用程序,您需要使用WSGI。你知道吗
本文使用WSGI: https://medium.com/@greut/minimal-python-deployment-on-docker-with-uwsgi-bc5aa89b3d35
这个只是直接运行python可执行文件: https://runnable.com/docker/python/dockerize-your-pyramid-application
在我看来,您不太可能直接运行python而不合并WSGI,有人能解释为什么runnable.com网站文章的docker解决方案是否可行?你知道吗
根据second link中的脚本:
This解释了为什么wsgi服务器构建在
if __name__=="__main__"
块中相关问题 更多 >
编程相关推荐