Google Cloud App Engine - Edit 1 file

前端 未结 3 1744
长发绾君心
长发绾君心 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

提交回复
热议问题