【问题标题】:PM2 with mercurial repo in deployment部署中带有 mercurial repo 的 PM2
【发布时间】:2017-02-06 11:20:11
【问题描述】:

我在 bitbucket.org 中有一个 mercurial 存储库,我想在 pm2 部署中使用它。 我的部署部分是:

deploy : {
    production : {
      user : "dimon",
      host : "app.mysite.com",
      ref  : "origin/master",
      repo : "hg@bitbucket.org:mylogin/myrepo",
      path : "/var/www/test_prod",
      "post-deploy" : "npm install && pm2 startOrRestart ecosystem.json --env production"
    }
  }

运行部署时出现错误:

  ○ cloning hg@bitbucket.org:mylogin/myrepo
Cloning into '/var/www/test_prod/source'...
conq: not a git repository.
fatal: Could not read from remote repository.

我还尝试了“mercurial@bitbucket.org:mylogin/myrepo”字符串,但没有成功。 如何正确设置 mercurial 存储库?

【问题讨论】:

    标签: deployment mercurial pm2


    【解决方案1】:

    根据维护人员的说法,pm2 deploy 现在只能与 git 一起使用。 GitHub

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-01-06
      • 1970-01-01
      • 2018-04-24
      • 1970-01-01
      • 1970-01-01
      • 2019-08-10
      • 2022-01-13
      相关资源
      最近更新 更多