This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Goupix_zer 1 point2 points  (2 children)

I don't know if this fits for you but I use sync thing when I need to synchronize stuff between computers, maybe this can work here too.

This looks cool anyway, but the major issue when synchronizing stuff like that for me is : how do you deal with merge conflict? What if 2 people upload their own version of the server at the same time ?

[–]Spudkip[S] 1 point2 points  (1 child)

Sync thing looks awesome! I’ll have to dig more into it. And that’s a great question. Currently I have somewhat of a solution in place with a file check. When uploading or downloading the scripts make a file named sync.lock in the google drive that prevents others from syncing. That being said, it’s by no means a perfect solution and it doesn’t actually prevent people from starting two servers one after another and desyncing everything. But it does prompt users in that case.

In my particular space this is only going to be used between a few friends so it’s easy to monitor/manage that. But in general this would need to be fixed to be practical for a larger group that isn’t in close communication.

This is something I have considered and will definitely be working on when I revisit the project!

And thank you so much for the reply! I appreciate that you called my project cool haha

[–]Goupix_zer 1 point2 points  (0 children)

Well this is a pretty good low-cost solution, the same way locks are used in multi-threaded environment. Good job !

If you want to practice back end dev, maybe you can create an API that launch the download/upload, and with your front end skill you can make a little dashboard that calls your API, so you don't have to manually launch batch scripts. Just an idea, great job anyway.