When I setup the local env, see the log:
WARNING  2018-06-01 13:21:25,741 api_server.py:581] Detected environment 
variable DATASTORE_EMULATOR_HOST=localhost:9999, dev_appserver will speak 
to the Cloud Datastore emulator running on this address. The datastore_path 
/var/folders/n4/vq69gqrn3470jyqdp1sxp2ww0000gn/T/appengine.None.gribeiro/datastore.db
 
will be neglected.
If you want datastore to store on 
/var/folders/n4/vq69gqrn3470jyqdp1sxp2ww0000gn/T/appengine.None.gribeiro/datastore.db,
 
remove DATASTORE_EMULATOR_HOST from environment variables and restart 
dev_appserver

And my app still writing/reading from the cloud.

On Wednesday, May 30, 2018 at 6:55:32 PM UTC+1, Kai Wang wrote:
>
> According to the documentation 
> <https://cloud.google.com/datastore/docs/tools/datastore-emulator#setting_environment_variables>,
>  
> you need to have the env var "DATASTORE_EMUALTOR_HOST" set. 
>
> Also, FYI, this "cloud.google.com/go/datastore" (officially, it is called 
> Google Cloud Client Library), should be able to connect to the datatore 
> emulator, no matter the code runs inside or outside of the dev_appserver.
>
> Please check the env var and lmk if they work :)
>
> On Wednesday, May 30, 2018 at 6:39:05 AM UTC-7, Giuliano Ribeiro wrote:
>>
>> Hi Kai Wang, I'm using "cloud.google.com/go/datastore"
>> As I read in the documentation this datastore package support the 
>> emulator, I was thinking it should be easy to use. But even enabling the 
>> emulator in the dev_appserver, my app is reading and writing directly in 
>> the cloud, ignoring the emulator. 
>>
>> Thanks,
>>
>> On Tuesday, May 29, 2018 at 8:08:08 PM UTC+1, Kai Wang wrote:
>>>
>>> Hi Glullano,
>>>
>>> What go libraries are you using? Is it 
>>> google.golang.org/appengine/datastore (link 
>>> <https://cloud.google.com/appengine/docs/standard/go/datastore/reference>) 
>>> ?
>>> Did it store locally before?
>>>
>>> You can email  [email protected] for further details :)
>>>
>>>
>>> On Friday, May 25, 2018 at 9:04:42 AM UTC-7, Giuliano Ribeiro wrote:
>>>>
>>>> Really nice, but how to put it to work ?
>>>> I'm using with Go, even setting up to true, my app still saving data in 
>>>> the cloud.
>>>>
>>>> Thank you, 
>>>>
>>>>
>>>> On Wednesday, May 16, 2018 at 9:57:42 PM UTC+1, Steren Giannini wrote:
>>>>>
>>>>> Dear App Engine users,
>>>>>
>>>>> We are pleased to announce that the App Engine local development 
>>>>> server (dev_appserver) is now compatible with the Cloud Datastore 
>>>>> Emulator 
>>>>> <https://cloud.google.com/datastore/docs/tools/datastore-emulator>.
>>>>>
>>>>> You can opt-in to this feature by running:
>>>>> * dev_appserver.py --support_datastore_emulator*
>>>>>
>>>>> By using the --support_datastore_emulator flag, dev_appserver will use 
>>>>> Cloud Datastore Emulator for local datastore emulation. You can read more 
>>>>> about the migration process here 
>>>>> <https://cloud.google.com/appengine/docs/standard/python/tools/migrate-cloud-datastore-emulator>
>>>>> .
>>>>> The development server and Cloud Datastore Emulator support the 
>>>>> interoperation of ndb and Cloud Datastore client libraries. 
>>>>>
>>>>> Please help us test this feature. Our goal is to enable it by default 
>>>>> in the future.
>>>>> Please share your feedback by replying directly to this thread. We are 
>>>>> looking forward to it!
>>>>>
>>>>> Thanks,
>>>>> Steren
>>>>> Product Manager
>>>>> Google Cloud
>>>>>
>>>>
>>>>
>>>> <https://lp.google-mkto.com/index.php/email/emailWebview?mkt_tok=eyJpIjoiWkdNM09UQTVOek0wWmpabSIsInQiOiJLTUp1dEptSzBXaVF3WmNFd3FMTGdJN2swY3dCNUFlNmVrOWVZWllxXC95OHVEdGRacHhkUmxZRkZOXC9TbEx4bkhWRnlES3RrU1hlWkVkMEFudkdMb1h3PT0ifQ%3D%3D>
>>>
>>>
>>
>> <https://lp.google-mkto.com/index.php/email/emailWebview?mkt_tok=eyJpIjoiWkdNM09UQTVOek0wWmpabSIsInQiOiJLTUp1dEptSzBXaVF3WmNFd3FMTGdJN2swY3dCNUFlNmVrOWVZWllxXC95OHVEdGRacHhkUmxZRkZOXC9TbEx4bkhWRnlES3RrU1hlWkVkMEFudkdMb1h3PT0ifQ%3D%3D>
>
>
-- 
 
<https://lp.google-mkto.com/index.php/email/emailWebview?mkt_tok=eyJpIjoiWkdNM09UQTVOek0wWmpabSIsInQiOiJLTUp1dEptSzBXaVF3WmNFd3FMTGdJN2swY3dCNUFlNmVrOWVZWllxXC95OHVEdGRacHhkUmxZRkZOXC9TbEx4bkhWRnlES3RrU1hlWkVkMEFudkdMb1h3PT0ifQ%3D%3D>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/edfbf328-bab1-47ce-9e39-9f5734229582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to