google-app-engine


how can I change my app-id in GAE and still access the same permanent datastore?


I am developing an app locally in Google App Engine. I have built a small datastore for development purposes. Rebuilding it after every power cycle on my Mac got tedious so I made it permanent. Now I run my app locally with the following command:
/usr/local/bin/dev_appserver.py "--datastore_path=./permanent.datastore" appengine_prototype
Life is good. I have decided to deploy my app so I can test http post commands from a different machine. When I tried to register my current application id (example), I found that it was unavailable (shocker!). So I registered a different application id and planned to change my local application id to match. However, when I changed the
application: *app-id*
line in my app.yaml file, my app stopped recognizing my permanent datastore.
So, how can I change my application id to the one I registered, maintain the connection to the permanent datastore and then push the whole shebang online? I tried running the app twice locally, first with the permanent datastore referenced in the command and then without, hoping that the default temporary datastore would inherit from the previous permanent datastore. That didn't work. Do I need to start by copying the permanent datastore to the default temporary datastore? How would I do that? Any help would be much appreciated.
Thanks,
Dessie
If your intention is to eventually push your local data to your live environment anyway, then your best bet is to:
use bulkloader.py to backup your local data (while using oldid in your config)
then change your config to your newid
then use bulkloader.py to push your data to your new development server (ran with --datastore_path=./permanent.datastore2 or something)
then use bulkloader.py to push your data to the GAE production server
Details of bulkloader.py can be found in the docs and an example here

Related Links

Multiple Services with Google App Engine Flexible Environments
Switching across region for failover
Editing appengine static site
gcloud:run error Application does not exist
Error Reporting with App Engine Flexible Environment
golang datastore projection query returning empty strings from a populated entity
Best way to initialize datastore w/ related entities
Google Identiy Toolkit Random OAuth Error
Maintaining separate environments with no downtime on update in app engine
managing app engine versions through API calls
Go GAE Using LoginURLFederated function returns API error 2 (user: NOT_ALLOWED)
Approaches for overcoming 10000 file limit on Google App Engine?
App Engine: Copy live Datastore to local dev Datastore (that still works)
All of my applications throw “deadline was exceeded”. GAE breakdown?
Splitting entities vs. using transactions
DataNucleus on AppEngine not returning any results

Categories

HOME
google-app-engine
microsoftgraph
design-patterns
redux-form
ns-3
angular-formly
jmx
spring-data-mongodb
xbee
mips
big-o
limit
android-json
missing-data
augeas
line
flatpak
selectize.js
package-managers
red5
vuejs
lilypond
simpleitk
expressionengine3
ms-access-web-app
apktool
rpgle
userdefaults
left-join
kodi
activexobject
hunspell
reason
alphabetical
trigonometry
levenshtein-distance
escpos
bindingnavigator
snapchat
optimizely
vaadin-elements
opennms
cnc
hammer.js
activeperl
java-6
skin
libjpeg
janus
monkey
cd-burning
rsa-archer-grc
android-instrumentation
atlas
tinkerpop3
shopping
android-wake-lock
upx
httpruntime.cache
vhosts
linklabel
java-money
forwarding
skspritenode
mirror
dot.js
openbabel
administration
iso-prolog
codeplex
spring-3
jeromq
workitem
scmmanager
abstract-data-type
web-notifications
pdfviewer
multiplexing
role
saxparseexception
listactivity
drawtobitmap
strsep
unattended-processing
appledoc
zend-rest
spread
interop-domino
lemmatization
online-storage

Resources

Encrypt Message