在 cloudshell (Google App Engine) 中的何处查找已部署的应用程序文件?
where to look in the cloudshell (Google App Engine) for deployed app files?
我正在从我的终端使用 gcloud
部署一个简单的 Flask 应用程序,我想简单地查看文件(app.yaml
、main.py
、requirements.txt
) 在 Cloud Shell 中,但无处可寻。
我什至尝试过:
find -name main.py -printf "%T@ %Tc %p\n" | sort -n
find -name app.yaml -printf "%T@ %Tc %p\n" | sort -n
find -name requirements.txt -printf "%T@ %Tc %p\n" | sort -n
查找文件并按修改日期排序,但尽管应用已成功部署,但这些文件并未显示,而且我确信我在正确的云 Shell 中项目。
我开始觉得我无法与云中已部署应用程序的文件进行交互 Shell?
I'm starting to think I can't interact with the files of a deployed app in Cloud Shell?
正确,您为 App Engine 部署的环境与为 Cloud Shell 获得的环境不同。云 Shell 是一个持久性虚拟机,您可以在其中做任何您想做的事情。App Engine 运行时是一个受限的运行时,每次您进行新部署时都会从头开始更新。
我正在从我的终端使用 gcloud
部署一个简单的 Flask 应用程序,我想简单地查看文件(app.yaml
、main.py
、requirements.txt
) 在 Cloud Shell 中,但无处可寻。
我什至尝试过:
find -name main.py -printf "%T@ %Tc %p\n" | sort -n
find -name app.yaml -printf "%T@ %Tc %p\n" | sort -n
find -name requirements.txt -printf "%T@ %Tc %p\n" | sort -n
查找文件并按修改日期排序,但尽管应用已成功部署,但这些文件并未显示,而且我确信我在正确的云 Shell 中项目。
我开始觉得我无法与云中已部署应用程序的文件进行交互 Shell?
I'm starting to think I can't interact with the files of a deployed app in Cloud Shell?
正确,您为 App Engine 部署的环境与为 Cloud Shell 获得的环境不同。云 Shell 是一个持久性虚拟机,您可以在其中做任何您想做的事情。App Engine 运行时是一个受限的运行时,每次您进行新部署时都会从头开始更新。