[英]Force lsyncd to sybc NOW
I'm using lsyncd to mirror a local development directory structure with a remote server.我正在使用 lsyncd 将本地开发目录结构镜像到远程服务器。 I'm editing files locally (with pycharm) and wait for them to be pushed unto the server when I'm done with a given change.
我正在本地编辑文件(使用 pycharm),并在完成给定更改后等待它们被推送到服务器。
Is there a way to force the lsyncd daemon to perform a sync now , not waiting for it's delay period to end, through the command line?有没有办法通过命令行强制 lsyncd 守护程序现在执行同步,而不是等待它的延迟期结束?
Thanks谢谢
Set the delay time in the lsyncd config to a small number.将lsyncd 配置中的延迟时间设置为较小的数字。 I used to use lsyncd for exact this job, and I think setting it to zero worked fine then (you probably wouldn't want that for lots of files getting updated by a script, or something, but it's fine for files being hand edited).
我曾经使用 lsyncd 来完成这项工作,我认为将其设置为零效果很好(你可能不希望通过脚本或其他方式更新大量文件,但对于手动编辑的文件很好) .
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.