overleaf-sync
overleaf-sync copied to clipboard
Support for Community Edition
Support for CE edition is added and can be used by placing a .olce file in the directory, containing the target url without a closing slash. When the file is missing sync will be done with overleaf.com. I tested it with overleaf.com and my local install with some test syncs. Further testing is appreciated.
Hi @hrvylein thank you for your additions! Unfortunately I currently don't have access to a community server, so I'm not quite sure how to test this.
Maybe with docker? There is a container maintained by Overleaf https://hub.docker.com/r/sharelatex/sharelatex/
Installing a CE on localhost is actually very easy.
sudo apt install docker docker-compose git clone https://github.com/overleaf/toolkit.git sudo vim /etc/group -- (or editor of your choice) and add yourself to the docker group cd toolkit bin/up
And you got a CE server running on http://localhost/
I'm impressed you could do this against the cloud server without looking into the logs, all I managed so far was by studying it workings on my install.
Unfortunately I cannot get overleaf-sync to run against my CE, I get in the log of the CE:
{"name":"web","hostname":"XXX","pid":426,"level":30,"url":"/project","msg":"user trying to access endpoint not in global whitelist","time":"2021-11-18T17:20:27.132Z","v":0}
I'm currently working a git-bridge (in node.js), I really want that to working again and IMO would be a step up from basic sync, since it would force people to merge conflicts instead of deciding who overwrites whom.
Got login working, can download the zip, can upload files, but currently I just can't figure out how to get the folder_id of a project and searching for this I stumbled on this project. Ok, SocketIO something I get from your code, but my client won't connect, and I can't even find the code in the web service source that should handle SocketIO connections.
Push, very usefull
@hrvylein would it be possible to rebase your changes to the current version?
I would really appreciate to use this in our CE hosted instance of the university.
@moritzgloeckl are you interested in a toy overleaf CE instance to test, or did it simply slip through? I think, if the old workflow with overleaf.com still works, testing by others would be enough ?
I have update the @hrvylein pull request to support the latest version of overleaf-sync login https://github.com/mone27/overleaf-sync-ce
Thank you @mone27! Just tried it and it works perfect! @moritzgloeckl, would it be possible to merge this pull request?