跳转到主要内容

代码更改时同步到机器

项目描述

用法

创建包含如下条目的 watcherConfig.txt

[project_name]
local_dir = /your/local/path
remote_dir = /your/remote/path
remote_addr = username@server
remote_port = {port}

[project_name]
local_dir = /your/local/path
remote_dir = /app
remote_addr = {username@server|server}
languages = {c++|all}
ignore_filetypes = {.so*|.so*,.cpp...}
file_delete = {True|False}

语言、remote_port、ignore_filetypes 是可选的

ignore_filetypes 在你的项目中嵌入c++代码,并且你同步到的机器不是你在开发的同一类型机器时非常有用。

all 语言将同步整个目录。默认情况下,语言是 python

file_delete 默认为 True,但如果设置为 False,则不会删除远程机器上本地不存在文件。这对于构建特定环境的工具非常有用,你不想让不同的环境覆盖(或者如果你不能在本地构建,因为某些原因)。

server 可以是在你的 ~/.ssh/config 中设置的别名

每次对本地目录的更改,cysnc 都会使用 rsync

安装

pip安装csync

待办事项

  • 让codeSync为你创建配置文件
  • 扩展makefile命令,使make不再是唯一的选择
  • 启用强制同步
  • 双向同步

项目详情


下载文件

下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

本发行版没有源代码分发文件。请参阅有关生成分发归档的教程。

构建的分发

csync-0.1-py2.py3-none-any.whl (9.1 kB 查看哈希)

上传于 Python 2 Python 3