How to edit and deploy APP Engine source code Using Google Cloud Shell’s new code editor?

4,027 views
Skip to first unread message

Dhandapani Sattanathan

unread,
Nov 2, 2016, 7:48:51 AM11/2/16
to Google App Engine
I deployed my PHP app using Google App Engine Launcher to GCP app engine.

I connected Google Cloud Shell’s of my existing GAE. I couldn’t cd to the existing source code folder.

But new folder, file I can create and edit the source code.

1.Why another member of GCP couldn’t see my folder and file? How to give permission to another member to a folder?

2. Is it possible to see the existing project script in GAE can edit using cloud shell?

Plz, help me.

Nicholas (Google Cloud Support)

unread,
Nov 3, 2016, 5:11:16 PM11/3/16
to Google App Engine
Welcome Dhandapani!

Happy to hear you are programming and deploying to App Engine using exclusively web tools like Cloud Shell.  If I understand your description correctly, you are starting an instance of Cloud Shell, editing code from there either via the command line or the experimental Web Editor based on Orion and then finally testing via the Web Preview or deploying directly to App Engine.

At this time, the file system accessed by Cloud Shell is specific the logged in user and cannot be accessed by another user as stated here.  This is why you cannot see the file system of your colleagues and they cannot see yours.  To share code with other users, I would strongly recommend using git repository.  Cloud Source Repositories allows you to host private Git repositories so that should serve your purpose.  If you prefer third-party tools, I'd recommend BitBucket or Github.  Either way, Cloud Shell instances come with git installed so that should be helpful.

If I understand your second question correctly, it seems you'd like to download the source code for a currently deployed application.  If this is the case, you can use appcfg.py -A YOUR_APP_ID -V [YOUR_APP_VERSION] download_app [OUTPUT_DIRECTORY] to do so.  If I've misunderstood your question, please elaborate what you mean by edit an existing project script using Cloud Shell.

I hope the above is helpful and answers your questions.

Dhandapani Sattanathan

unread,
Nov 5, 2016, 1:51:48 AM11/5/16
to Google App Engine
Thanks Nicholas for immediate reply to my question.

Yes,My second question what you understood was correct. Now I can download the existing deployed application.I 'll use GitHub Or Bitbucket to share others.
Reply all
Reply to author
Forward
0 new messages