简体   繁体   English

现在强制 lsyncd 到 sybc

[英]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.

相关问题 下载了 PyCharm,现在 Java 在 IntelliJ 中被破坏了 - Downloaded PyCharm and now Java is broken in IntelliJ PyCharm已更新,现在每个脚本都在Python控制台中执行 - PyCharm updated and now every script gets executed in Python Console 用于执行操作的IntelliJ(Webstorm / PyCharm)快捷方式现在打开奇怪的弹出窗口 - IntelliJ (Webstorm / PyCharm) shortcut for take action now opens weird popup 我不小心删除了PyCharm中的venv文件夹,现在运行有问题 - I accidentally deleted the venv folder in PyCharm and now have a problem with running it 如何强制Pycharm运行所有单元测试? - How to force Pycharm to run all unit tests? 如何强制PyCharm警告未声明的类型? - How do I force PyCharm to warn about undeclared types? 有没有一种快速的方法来强制Pycharm刷新docker-compose缓存? - Is there a quick way to force Pycharm to refresh docker-compose cache? 如何强制PyCharm以XML格式打开文件? - How does one force PyCharm to open a file as XML? Pycharm - 搁置的更改......现在我想要它回来 - Pycharm - Shelved Changes... now I'd like it back 无论如何,有什么强迫PyCharm始终使用绝对导入? - Is there anyway to force PyCharm to always use absolute imports?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM