我的应用程序需要 cmake
、libx11-dev
和 libpng-dev
来构建。我遇到了this documentation ,这让我相信我可以将这些列为我的应用程序在 Google App Engine 平台上运行的依赖项,尽管我不知道如何操作。我成功地在 Compute Engine 实例中运行我的应用程序,尽管这成本高昂,而且如果我没记错的话,也是不必要的。如何在 session 结束后安装问题开头列出的软件包?
最佳答案
您只能以这种方式列出 Node.js
依赖项。来自 Declaring and managing dependencies (强调我的):
You can use any Linux-compatible Node.js package with App Engine flexible environment, including packages that require native (C) extensions.
您可以使用除 Node.js
之外的依赖项(至少列表中的 cmake
),但只能在灵活的环境中通过自定义运行时使用。来自 About Custom Runtimes :
Custom runtimes allow you to define new runtime environments, which might include additional components like language interpreters or application servers.
另请参阅Building Custom Runtimes .
关于node.js - Google App Engine - 指定自定义构建依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51353656/