CLI Removed half of the project.

I ran 'ggt dev sutton' on my local, which copied the files locally. I then ran 'ggt dev' to auto detect changes, but the copy did not include all of the files, and only included half, or the "web" folder. after running ggt dev, it then applied the 'changes' of the missing files to the project in cloud which has caused the GUI to break completely (cannot deploy, use AI or anything) and there does not seem to be a revert option in the cli. https://sutton--development.gadget.app
6 Replies
Homicity
HomicityOP•2mo ago
It would be great if you could revert it before this breaking change @[Gadget] Antoine if you could kindly have a peek at this it would be greatly apprecaited 🙂
Chocci_Milk
Chocci_Milk•2mo ago
Hello, Could you please run me through exactly what you did to get into this state? A step by step reproduction would be very helpful
Milkbag
Milkbag•2mo ago
Hi, this is the developer for homicity. I am not sure how half of the project was deleted locally, but running 'ggt dev' caused the local project to push its changes automatically (meaning it pushed the project with half of the files missing). Now I cannot seem to revert the autopush using the ggt cli nor can I do anything with the project in the gadget GUI in the browser. I just need the project to be reverted to before this autopush and I will keep in mind the autopush going forward.
Chocci_Milk
Chocci_Milk•2mo ago
Are you using git? You should recover what you had from there. From the file system (in our internal system) it looks like you only have 2 files left. This gives the impression that the command was run on a folder that had nothing in it with the "Use local changes" diff prompt selected
Milkbag
Milkbag•2mo ago
I was trying to setup git, but the project broke before I could connect it. I was able to restore the files locally from a backup I had and then ran 'ggt dev' again, which created all the files again on gadget. Is there no system on your end to revert project pushes? anyway, I was able to resolve the issue
Chocci_Milk
Chocci_Milk•2mo ago
We do have backups of file versions, however, we only retrieve them for users as a last resort. This is also the case for database backups. I just wanted to see if there were other alternatives before we started the recovery process

Did you find this page helpful?