【问题标题】:Got error (pre-receive hook declined) with dokkudokku 出现错误(预接收挂钩被拒绝)
【发布时间】:2015-12-13 18:00:01
【问题描述】:

使用 Ubuntu 和 Dokku 推送到我的 VPS 时出现错误

$ git push dokku master
Counting objects: 1104, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1057/1057), done.
Writing objects: 100% (1104/1104), 2.38 MiB | 2.45 MiB/s, done.
Total 1104 (delta 346), reused 0 (delta 0)
-----> Cleaning up...
-----> Building TransCRM from herokuish...
remote: repository name component must match "a-z0-9(?:[._][a-z0-9](?:-[a-z0-9]))"
To dokku@nnn.nn.nn.nn:TransCRM
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@nnn.nn.nn.nn:TransCRM'

这没有帮助(我在 Dokku repo 的 github 上找到了这个解决方案)

 sudo wget -O /etc/init/docker.conf https://raw.github.com/dotcloud/docker/master/contrib/init/upstart/docker.conf
    sudo service docker restart

【问题讨论】:

  • 快 3 年了,不是一个有效的解决方案!

标签: git dokku


【解决方案1】:

remote: repository name component must match "a-z0-9(?:[._][a-z0-9](?:-[a-z0-9]))"

这行意味着 dokku 的容器服务名称必须匹配这个正则表达式。因此,“TransCRM”之类的名称不起作用,但“transcrm”可以使用。我对此的直觉是子域通常不匹配大写与小写,因此 dokku 强制使用小写以保持一致性。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-03-12
    • 2015-04-03
    • 2011-12-20
    • 2012-01-03
    • 2020-07-19
    • 2012-03-21
    相关资源
    最近更新 更多