Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update queues with gcloud?

I previously was using appcfg.py to deploy my (python) applications on Google AppEngine, but I recently switched to the gcloud command.

For updating the queues, I was doing :

/opt/google/google_appengine/appcfg.py -A project-id update_queues .

But now with ‘gcloud‘ I don't know how I can do that?

For information, here's how I deploy a new version now :

gcloud app deploy --project project-id app.yaml

Thank you :)

like image 473
Cyril N. Avatar asked Dec 23 '22 23:12

Cyril N.


1 Answers

The cloud sdk deploy command supports multiple config files index.yaml, queue.yaml, dispatch.yaml, dos.yaml, cron.yaml

gcloud app deploy [DEPLOYABLES …]

[DEPLOYABLES …]

The yaml files for the services or configurations you want to deploy. If not given, defaults to app.yaml in the current directory. If that is not found, attempts to automatically generate necessary configuration files (such as app.yaml) in the current directory.

https://cloud.google.com/sdk/gcloud/reference/app/deploy

So:

gcloud app deploy app.yaml queue.yaml
like image 62
Jeffrey Godwyll Avatar answered Jan 20 '23 07:01

Jeffrey Godwyll