Capistrano 只能移动新文件吗?
这不是 ruby/rails 项目部署。我有以下情况,我想知道 Capistrano 是否可以解决我的问题,或者您是否知道更合适的东西。
- 一台安装有 ruby 和 capistrano 的 Windows 主机。
- 这台机器的文件夹中有一些文件,这些文件将被更新(全部或部分)。
- 目标是将更新的文件与许多其他服务器同步。
一些注意事项:
1)这些文件可能很大(> 100MB),所以我不想每次都将所有文件发送给每个人。没有改变的东西不应该再次发送。
2)分布式部署将是一个优势。假设我有一台主机和 100 个端点,让这些端点在同步后相互服务将是一件非常好的事情。
3)也许有些服务器不需要所有文件。
4)根本没有代码,也许也不需要命令行。
This is not a ruby/rails project deploy. I have the following situation and I would like to know if Capistrano can solve my problem, or if you know something more proper.
- A host Windows machine, with ruby installed and capistrano.
- This machine have some files in a folder, that will be updated (all or just some).
- The goal is to sync the updated files with many other servers.
Some considerations:
1) These files can be big (> 100MB), so I wouldn't like to send all files to everyone every time. Things that didn't change wasn't supposed to be sent again.
2) A distributed deploy would be a plus. Let's suppose I have a host machine and 100 endpoints, making these endpoints serve one to another after syncing would be something really good.
3) Maybe there are some servers that doesn't need all files.
4) There's no code at all, maybe no command line need also.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Capistrano 不仅可以用于 ruby/rails,还可以移动非新文件。你可以将它与 rsync 一起使用。查看这个SO答案:
使用 Capistrano 进行部署(非 Rails 站点)通过 FTP?
Capistrano can isn't just for ruby/rails and can move non-new files. You can use it with, say, rsync. Check out this SO answer:
Using Capistrano to deploy (a non-Rails site) via FTP?