How can I deploy my app to GCP?

157 views
Skip to first unread message

Nihal Darendeli

unread,
Apr 5, 2021, 9:05:23 AM4/5/21
to Google App Engine
Hi all, 

I keep getting error when deploying our app to the GCP - 
ERROR: (gcloud) Invalid choice: 'deploy'.This command is available in one or more alternate release tracks. Try: gcloud alpha deployndarendeli@cloudshell:~ (project-2-group-5)$

can you help me this issue please?

NoCommandLine

unread,
Apr 5, 2021, 12:30:16 PM4/5/21
to Google App Engine
1) What command are you using/trying in your console?

2) Do you actually have gcloud installed (correctly)?

To deploy your app, the minimum command is  'gcloud app deploy' . If you are executing this in your project's root folder, the system will deploy the 'app.yaml' file it finds in the root folder. If it can't find one, it will error out. 
See this link for gcloud app deploy documentation

If you're sure you have gcloud correctly installed, you are using GAE standard environment and you're still having problems (or you prefer not to deal with command-line/terminal) , we have a GUI - https://nocommandline.com - that allows you to just select your project and click a button to run, deploy and execute other functions. 

wokmou

unread,
Apr 5, 2021, 7:15:37 PM4/5/21
to Google App Engine
This same issue had previously been reported on the public issue tracker[1] .

A suggested workaround that has worked for several users is to run the following command:

"gcloud config set app/use_deprecated_preparation True"

Reply all
Reply to author
Forward
0 new messages