R0w13y
R0w13y

Reputation: 13

Bucket files still saved locally when using dev_appserver and --support_datastore_emulator=false

I'm running a local instance of a PHP app-engine project, I have got some buckets setup in GCP specifically for the local dev version, however instead of the data that I write to the bucket appearing online, they are being saved locally into the dev_appserver Datastore. I can see the files in the local admin interface (localhost:8000) under Datastore.

This is an issue as the application I'm developing has a companion app which needs to also access the bucket files.

The

--support_datastore_emulator=[true|false]

flag is documented under

dev_appserver.py -h

But it doesn't seem to have any effect when using =false.

So my question is: How do I stop the dev_appserver from using the local Datastore and make it use the 'real' buckets on the web?

Upvotes: 0

Views: 97

Answers (1)

Maxim
Maxim

Reputation: 4431

Try setting the --default_gcs_bucket_name flag documented here to establish the default GCS bucket to use:

dev_appserver.py app.yaml --default_gcs_bucket_name gs://BUCKET-NAME

Upvotes: 0

Related Questions