Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my deployment have no data but my preview has all the data?

My preview works and has data but my deployment has no data. I'm using the (Recommended) DEFAULT CLOUD SQL database configuration.

Note: This is only day 4 with Google App Maker. Finding answers to App Maker-specific questions has been super difficult, but I'm making rapid progress on my application, so overall tired but good. :{)

like image 831
Christian Swanson Avatar asked Jan 01 '23 01:01

Christian Swanson


1 Answers

As written in the documentation,

App Maker deployments can use the same Cloud SQL instance, but have separate databases on that instance. Data that you had in preview mode is not available in other deployments. You have a few options for how to handle this situation:

To use data from the preview instance in your published deployment, export the deployment data from the preview instance and import it to the published deployment.

To share a database across all deployments (preview and published), use a custom Cloud SQL database.

like image 83
TheMaster Avatar answered Jan 08 '23 01:01

TheMaster