Running the command gcloud app deploy --project=my-project-name
gives me the following output:
$ gcloud app deploy --project=my-project-name
You are about to deploy the following services:
- my-project-name/my-service-name/20160922t110054 (from [/usr/local/projects/my-project/app.yaml])
Deployed URL: [https://my-service-name-dot-my-project-name.appspot.com]
Do you want to continue (Y/n)? Y
WARNING: We couldn't validate that your project is ready to deploy to App Engine Flexible Environment. If deployment fails, please try again.
Beginning deployment of service [my-service-name]...
WARNING: Deployment of App Engine Flexible Environment apps is currently in Beta
Building and pushing image for service [my-service-name]
ERROR: (gcloud.app.deploy) Project [my-project-name] not found.
As you can see, it's claiming the project isn't found. What's confusing me is that the project clearly appears under here:
$ gcloud projects list
PROJECT_ID NAME PROJECT_NUMBER
my-project-name MyProject 980737858333
I can't find any other instance of this issue, and I've run out of ideas to troubleshoot. So what's the problem with the command I'm running? Or how else can I troubleshoot?
My app.yaml
looks like this:
entrypoint: gunicorn -b :8080 main.app
runtime: custom
vm: true
service: my-service-name