在共享主机上没有git命令的Capistrano部署? [英] Capistrano deployment without git command on shared host?

查看:80
本文介绍了在共享主机上没有git命令的Capistrano部署?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 开发人员A-本地存储库->拉/推---> github

  • 开发人员B-本地存储库->拉/推- -> github

  • Capistrano将保留在我们开发人员的机器上,但是我们将定义:repository指向我们的GitHub项目:set:repository, git@github.com:myuser / myproject .git#我的克隆URL

  • 开发人员A或开发人员B必须被允许将提交的文件部署到生产计算机上。

  • Developer A - Local Repository --> pulls/push ---> github
  • Developer B - Local Repository --> pulls/push ---> github
  • Capistrano would remain on our developers' machines, however we will define :repository to point to our GitHub project: set :repository, "git@github.com:myuser/myproject.git" # My clone url
  • Developer A OR Developer B must be allowed to deploy committed files to the production machine.

我不确定这里的第三点,这可能吗?

I'm not sure about the third point here, is this possible?

ctctry告诉我在此工作流程中,git命令是否需要要安装在生产服务器上?那是

I've been told by ctcherry here On this workflow, does git command needs to be installed on the production server? that:


1)默认情况下,Capistrano将从存储库中部署
,因此要部署的文件
来自
代码tha t被检入github。您
可以配置Capistrano,以使用不同的部署
策略通过
从开发人员本地计算机上部署$ ist
。 //rubydoc.info/gems/capistrano/2.5.19/Capistrano/Deploy/Strategy/Copy rel = nofollow noreferrer> http://rubydoc.info/gems/capistrano/2.5.19/Capistrano/Deploy/Strategy / Copy

但我仍然对此表示怀疑。

But I still have doubts here.

如果使用这种方法,确切工作流程在这里是什么?

If we use this approach, what would the exact work-flow be here?


  • 从开发人员机器A -我们使用Capistrano从github上获取提交的文件。

  • 从同一台开发人员机器A-我们通过SSH将这些文件部署到共享主机中,文件将放置在正确的位置?

是吗?

更新:
请我从未使用过Git或Capistrano Deploy,但是,我正在尽力尝试了解所有这一切工作,以便为基于ZF的应用程序提供良好的工作流程开发流程。

Update: Please I've never used either Git or Capistrano Deploy however, I'm doing my best to try to understand how all this may work, in order to allow a good workflow development process for my ZF based applications.

所以我的问题确实是基本问题。

So my questions are really basic ones.

如果我必须提供其他信息,请告诉我。

If I must provide any additional information, please let me know.

非常感谢。

推荐答案

工作流程相同。发生的事情是,无论何时任何开发人员尝试部署项目,Capistrano都会首先将项目的新副本检出到其计算机上的temp目录中,将其压缩并上传到远程服务器。在远程服务器上,归档文件将被解压缩,其他所有内容都将正常运行。

The workflow is the same. What happens is, whenever either developer tries to deploy the project, Capistrano will first checkout a fresh copy of the project into a temp directory on their machine, zip it up, and upload it to the remote server. On the remote server the archive will then be decompressed and everything else works as normal.

请注意,这种方法比普通部署要慢得多,尤其是在您的Internet上连接很慢,因为每次都要复制整个项目。

Note that this approach is considerably slower that a 'normal' deployment, especially if your Internet connection is slow, since the whole project is being copied up each time.

这篇关于在共享主机上没有git命令的Capistrano部署?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆