When you said you tried SSH, did you actually gain access to the VM or did 
this fail? This is what you will need to do to access the application 
source. Note that once you SSH to the VM you will need to then connect to 
the Docker container in production. Please follow the steps at the end of 
'Accessing 
the VM Environment 
<https://cloud.google.com/appengine/docs/managed-vms/host-env#google-managed_vms_and_user-managed_vms>'
 
carefully.

The application is generally uploaded to the /app folder in the container's 
root but this can differ depending on what was specified in the Dockerfile. 
You could try searching for any JavaScript files from the command line 
inside the container:

*(container)$* find / -name "*.js" 

If you locate the source probably the easiest thing to do is cat it to the 
terminal and copy and paste it from the scrollback. You could also leave 
the container and copy it it out to the host VM and from there grab it with 
gcloud compute copy-files from your local machine:

*(hostvm)$* docker cp <containerId>:/file/path/within/container 
/hostvm/path/target
*(localmachine)$* gcloud compute copy-files hostvm:/path/target 
/local/machine/dest

On Wednesday, December 23, 2015 at 5:33:14 PM UTC-5, Mani Doraisamy wrote:
>
> I built a small app using Nodejs on app engine managed VM. It is still 
> running; but I have lost its source code. Can I download that app similar 
> to python or java?
>
> I also tried SSH after making it user managed. But, I am not sure how to 
> proceed. It is a single js file app. So, as long as I can see the source 
> code I would be fine. Any suggestions?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b4ef58bb-53f4-47dd-a730-1ae81dd5e897%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to