【问题标题】:How should I give the repo url in production environment我应该如何在生产环境中提供 repo url
【发布时间】:2014-09-13 14:30:58
【问题描述】:

我正在使用 capistrano 来部署我的 rails 应用程序。在我的 config/deploy.rb 文件中,我应该如何提供 repo url。

我正在学习本教程: https://gorails.com/deploy/ubuntu/14.04

而不是 设置 :repo_url, 'git@github.com:excid3/myapp.git'

如果我使用 bitbucket,应该在那里给出什么

【问题讨论】:

    标签: ruby-on-rails ruby git capistrano bitbucket


    【解决方案1】:

    对于 bitbucket,您可以使用:

    git@bitbucket.org:accountname/reponame.git
    or
    ssh://git@bitbucket.org/accountname/reponame.git
    

    见“Use the SSH protocol with Bitbucket”

    注意:the comments of the tutorial mentioned in the question 添加:

    您在~/.ssh/id_rsa 中的本地密钥将针对服务器的/home/deploy/authorized_keys 文件进行尝试。
    Capistrano 不允许密码验证,因此您必须确保运行 ssh-copy-id 以将您的 pub 密钥添加到服务器部署用户的 authorized_keys 文件中。

    【讨论】:

      猜你喜欢
      • 2010-11-23
      • 2013-07-28
      • 1970-01-01
      • 1970-01-01
      • 2020-10-12
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      • 2014-04-24
      相关资源
      最近更新 更多