I am trying to deploy a node app, which is in a repository in GitHub, and mirrored by the Google App Engine.
The steps I took:
Create the app on my local machine
Published the Repository on Github
- In the Google Console, I told App Engine to mirror this Repository, which works: If I go to Development, the repository shows up:
- Then I open the remote shell Google is providing, and tried to run
gcloud app deploy
, which gave an error, then I noticed the files are not in the directory. So I browsed through all the folders of this machine via the shell, and I can't find it.
Question: What am I missing here? Does Google mirroring my Repo not imply it is somewhere saved on the instance? Do I need to clone it to there as well?
I'm using as reference the solution pointed to by this answer: https://stackoverflow.com/a/40693455/4495081.
In the web-cached article all the ops are done inside the cloud shell, basically a local repo exists in your cloud shell "homedir". From there it is saved/uploaded to the cloud source repository:
In your case you went in the other direction: you created your cloud source repository and linked it to your github one using the Developer Console, but no repo exists in your cloud shell homedir.
All you need to do is to clone your cloud source repository into your cloud shell homedir, which I think can be done in the cloud shell, following the custom steps indicated in the
Clone your Cloud Repository to a local Git repository
section of the Source Code page, then deploy from there. Something along these lines: