What’s the best way to sync database from production to Dev without much hassle?
My production Db changes regularly and anytime I push a new update from the Dev (Replit environment), my production db is wiped away with the update.
How can I have them sync?
I’m not a coder and know nothing about Github, etc.
Hey! I’m not a construction guy with no coding experience (apart from Replit) and had the same issue. Unfortunately you’ll have to learn to use Git (usually GitHub), because, well, it’s the easiest way.
You have build your development Repl, make a blank production Repl and use GitHub to clone your development code into your production Repl. After that it’s easy to push updates from the dev repl into GitHub and pull the updated code into your production repl. That way all the code is transferred but you have 2 separate databases that keeps your data clearly segregated. Does that make sense?
I knew nothing about Git or Github and it took me like an hour or two on Youtube and XAI to learn enough about cloning, commits, branches, push, pull, etc. Once you know what you’re doing it’s smooth and easy.
Oh, and don’t let yourself get fooled by Agent or Assistant!! They’ll tell you that you can do it under one Repl, I had to get in touch with tech support after a long and frustrating experience!!