[英]Got error (pre-receive hook declined) with dokku
使用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
remote: repository name component must match "a-z0-9(?:[._][a-z0-9](?:-[a-z0-9]))"
此行表示dokku的容器服务名称必须与此正则表达式匹配。 因此,“ TransCRM”之类的名称将无效,但“ transcrm”将可使用。 我的直觉是,子域通常不匹配大写或小写,因此dokku强制使用小写以保持一致性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.