Google应用引擎运行Shell脚本文件

问题描述 投票:0回答:2

是否可以在谷歌应用引擎中运行Shell脚本文件?喜欢使用

Process proc = Runtime.getRuntime().exec("xxx/xxx/xxx/kishan.sh "); //Whatever you want to execute?

谷歌应用引擎文档中有白名单,其中列出了可以使用的类,但未指定类中的函数/。我正在尝试使用Java

shell file google-app-engine whitelist app-engine-flexible
2个回答
0
投票

在GAE-Standard上,您无法调用shell脚本。在GAE-Flexible上,你可以。 Read more about GAE-Standard vs GAE-Flexible environments


0
投票

尝试GAE Flex自定义运行时,您可以在本地构建自己的Docker镜像,测试它然后进行部署。它需要一个app.yaml文件

runtime: custom
env: flex
© www.soinside.com 2019 - 2024. All rights reserved.