Reputation: 17
I could not use the "gcloud app deploy" inside of a SSH, so now I need to grab those files and bring them into my Google repo (my project) then deploy so I create the website with the files (that include the html used for the website). Here is what the files look like inside the SSH:
jinthemix@cloudshell:~ (website-deploying-gc)$ ssh [email protected]
Password: _
Last login: Wed Jan 20 20:20:45 2021 from 157.119.197.35.bc.googleusercontent.com
vergil11$ ls
GITREPOS IMD233 Mix 1 Mix 2 Mix 3 Mix 4 Files public_html README.md websitedeployinggc
vergil11$ cd Files
vergil11$ cd websitegc
vergil11$ ls
app.yaml IMD233 Files README.md www
vergil11$
And here is what the google cloud looks like (there is no files besides the one already in here):
jinthemix@cloudshell:~ (website-deploying-gc)$ ls
README-cloudshell.txt
jinthemix@cloudshell:~ (website-deploying-gc)$
Any ideas on how copy the files into the google cloud project locally would help, thanks
Upvotes: 0
Views: 179
Reputation: 75715
Use the scp
command from CloudShell
jinthemix@cloudshell:~ scp -r [email protected]:~/Files/websitegc/* .
This command uses OpenSSH to copy files between hosts on a network and with the help of the -r
flag it will do it recursively with all the files and folders within the specified hosts.
Upvotes: 1