使用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回购中找到了解决这个问题)
sudo wget -O /etc/init/docker.conf https://raw.github.com/dotcloud/docker/master/contrib/init/upstart/docker.conf
sudo service docker restart
答案 0 :(得分:0)
remote: repository name component must match "a-z0-9(?:[._][a-z0-9](?:-[a-z0-9]))"
此行表示dokku的容器服务名称必须与此正则表达式匹配。所以这个名字就像" TransCRM"不会工作,但" transcrm"会工作。我的直觉就是子域通常不匹配大写和小写,所以dokku强制执行小写以保持一致性。