【发布时间】: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