Hi,
I am new to Strapi and currently running it on Cloud Run with CloudSQL Postgres as the database.
I understand that there are develop and production modes in Strapi, and that in the production mode, operations such as adding collection types are not possible. However, in the develop mode, even though I can add collection types and entries, they disappear from CloudSQL once I restart the container.
Is this a feature of Strapi’s develop mode or could it be an issue with my setup? Could anyone guide me on how I could add data in a way that it persists even after a restart?
Here is the process I followed to set up:
- I created a new Strapi application on my local machine using the command
npx create-strapi-app@4.5.4 strapi --quickstart
. - I then modified the database configuration file at
/config/database.js
to connect to my CloudSQL Postgres v14 database. - I built a Docker image from this setup.
cloud builds submit --tag gcr.io/mygcpproject/strapi - Lastly, I deployed this Docker image to Cloud Run.
Thank you for your help in advance!