Google Cloud App Engine-编辑1个文件 [英] Google Cloud App Engine - Edit 1 file

查看:73
本文介绍了Google Cloud App Engine-编辑1个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Google Cloud的新手,我想知道是否可以在App Engine应用程序中仅编辑一个文件.

I am new at Google Cloud and I would like to know if there is a way to edit only one file inside of an App Engine application.

这是我的问题: 我正在从普通托管迁移到Google Cloud,我的PHP代码遇到了一些问题,我使用的是本地版本,但我在云中遇到了一些错误,因此我需要更改1或2个文件,并进行更新它们并测试应用程序,那么有什么方法可以直接在服务器上更改该文件?要部署我正在使用此命令:

This is my problem: I am migrating from a normal hosting to google cloud and I am having some problems with my PHP code, I am using the same version like locally but I am getting some error in the cloud, so I need to change 1 or 2 files, update them and test the app, so is there any way to change that file directly on the server? To deploy i am using this command:

gcloud app deploy

但是部署大约需要10分钟,因此我的测试太慢了.有什么建议吗?

But it takes about 10 minutes to deploy so is too slow my testing. Any suggestions?

谢谢. 莱安德罗

推荐答案

对于标准环境,答案是否定的,您需要部署新版本的应用程序来修改文件.因此建议是-充分利用本地测试您的应用程序.查看与 Google AppEngine-部署后更新我的webapp相关的某种方式

For the standard environment the answer is no, you need to deploy a new version of the app to modify a file. So the advice would be - make the most of testing your app locally. See somehow related Google AppEngine - updating my webapp after deploy

对于灵活的环境(可能是您提到的10分钟部署时间,对于灵活的环境而言通常如此),可能会尝试 ,但很乏味,请参见Google AppEngine-部署后更新我的webapp

For the flexible environment (possibly your case as you mentioned 10 min deployment time, typical for the flexible env) there might be stuff to try, but tedious, see Google AppEngine - updating my webapp after deploy

这篇关于Google Cloud App Engine-编辑1个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆