将 rake 任务部署到服务器
我在 github 上托管了几个简单的 rake 任务,我想将它们推送到远程服务器。它本质上只是一个包含一些类和一个 Rakefile 的目录。最好和/或最简单的部署方法是什么?
我认为最简单的可能就是在我的服务器上克隆存储库,并在有更新时执行 git pull 。但是,这需要一些手动干预,我希望尽可能实现自动化。像 Capistrano 这样的东西对于这项任务来说会不会太过分了?
I have a couple simple rake tasks hosted at github that I would like to push to a remote server. It's essentially just a directory with a few classes and a Rakefile. What would be the best and/or simplest approach for deployment?
I'm thinking the simplest might be just to clone the repo on my server and do a git pull whenever there's an update. However, this would take some manual intervention and I'd like to automate as much as possible. Would something like Capistrano be overkill for this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
capistrano 非常适合这项任务,但 webistrano 也很好,它为这种情况提供了预定义的配置。
capistrano fits this task perfectly, but also good would be webistrano which has predefined configurations for such cases.