Local console changes apply immediately for cloud #8928
-
I'm certain I'm missing something really obvious, just need help understanding what that is. When I run the console locally against my cloud project, it both generates migrations in my local file system and immediately applies changes as if I were making them on the hosted console. How do I keep changes local and have them only apply when expected (in this case when I push to main)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @erquhart
Can you elaborate this please ? Is it that you are running console locally against your DB hosted which is connected with your cloud project ? Suggestion:You can source control your Hasura cloud project with your local console repository via git deploy feature. What this “git deploy” feature will do is that whatever metadata and migrations you push, it will apply to that branch (git branch which you’d specified in Hasura cloud project) and then your Hasura cloud console will run those migrations and metadata. Check out here about git deploy docs here - https://hasura.io/docs/latest/deployment/github-integration/ . (See the screenshot on how structure of directory looks like which will be captured by git deploy feature)
Essentially in development mode, we keep a clone of the original DB and use it for development purpose. This way we do isolate DB from which is separate as that of cloud project. Having console running locally against your DB (which is also running locally), this way you can keep migrations away from polluting your production DB (the one connected with your cloud project) and store them locally. |
Beta Was this translation helpful? Give feedback.
Hey @erquhart
Can you elaborate this please ? Is it that you are running console locally against your DB hosted which is connected with your cloud project ?
Suggestion:
You can source control your Hasura cloud project with your local console repository via git deploy feature. What this “git deploy” feature will do is that whatever metadata and migrations you push, it will apply to that branch (git branch which you’d specified in Hasura cloud project) and then your Hasura cloud console will run those migrations and metadata. Check out here about git deploy docs here - https://hasura.io/docs/latest/deployment/github-integration/ . …