hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
https://sparkleshare.org
Other
4.88k stars 576 forks source link

Manually Restarting Sparkleshare to Pull Changes #1850

Closed peterhuson closed 6 years ago

peterhuson commented 6 years ago

I need to be able to pull changes to the Sparkleshare directory without access to a notification server (restricted network access).

The quick and dirty solution I have set up right now is to run this once every minute: wmic process where name="SparkleShare.exe" delete start "me" "C:\Program Files (x86)\SparkleShare\SparkleShare.exe"

This is very hacky and I would like to find a better solution. I know that manual refreshes have been asked for before in #1401, and setting up a notification server was recommended. In my case this would be difficult because of network restrictions.

In #1401, someone mentioned manually running git pull on a client in order to pull any changes. I tried this, but even after attempting to change the client's SSH key to the one stored in /AppData/Roaming/sparkleshare/_date_.key.pub, I get permission denied (publickey).

Is there a way to set up a script to git pull using the config Sparkleshare is using?

hbons commented 6 years ago

SparkleShare should already poll manually every 3 minutes for new changes when there's no notification server.

It looks like you're using Windows. It's tricky to make ssh-agent and work reliably there (and sometimes other apps using SSH may conflict), so I can't really help you there...

hbons commented 6 years ago

I'm closing this. I'll most likely add a "Check Now" button when redoing the UI in #1774. :)