Google Cloud App Engine - Edit 1 file

前端 未结 3 1745
长发绾君心
长发绾君心 2021-01-14 01:33

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.

This is my problem: I am migrating fro

相关标签:
3条回答
  • 2021-01-14 01:51

    There is a way to edit directly into the instance.

    ssh into your instance and then start shell on your running docker as guided in this url. https://cloud.google.com/appengine/docs/flexible/python/debugging-an-instance

    After login you can see your php source files.

    Basically you will not have any editor. So do

    $> apt update
    $> apt install nano
    $> nano index.php // edit your files
    

    you can see something like

    0 讨论(0)
  • 2021-01-14 01:56

    There is no way to change 1-2 files on the server so that it would update the app. Deployment is the process of updating the live app. If you want some changes to be made to the app that is already deployed, you will have to redeploy - there is no way around it. This is why it is recommended to test the app locally before (re)deploying so that you are sure everything is working fine.

    If locally everything works fine and issues start happening only when the app is deployed, this should be investigated further and I would advise you to open a new question and provide as much details as possible regarding the problems, including full stack trace of the error, related code parts, your app.yaml contents as well.

    0 讨论(0)
  • 2021-01-14 01:57

    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

    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

    0 讨论(0)
提交回复
热议问题