0
我想在EC2(ubuntu)上部署Dokku 0.10.4,但我没有成功(我使用Mac)。我跟着手册,但没有喜悦在EC2上部署Dokku,初始git推送失败
基本上在所有安装步骤,我得到一个权限被拒绝时,我git push myclient_ec2 master
我的设置如下:
SSH /配置
Host myclient_ssh
Hostname example.com
User ubuntu
IdentityFile ~/.ssh/AWS_ID.pem
.git/config
[remote "myclient_ec2"]
url = [email protected]:myapp
fetch = +refs/heads/*:refs/remotes/dokku/*
安装seq uence如下
ssh -i ~/.ssh/AWS_ID.pem [email protected] wget https://raw.githubusercontent.com/dokku/dokku/v0.10.4/bootstrap.sh
ssh -i ~/.ssh/AWS_ID.pem [email protected] sudo DOKKU_TAG=v0.10.4 bash bootstrap.sh
ssh -i ~/.ssh/AWS_ID.pem [email protected] rm bootstrap.sh*
ssh -i ~/.ssh/AWS_ID.pem [email protected] apps:create myapp
git remote add myclient_ec2 [email protected]:myapp
cat ~/.ssh/AWS_ID.pem | ssh myclient_ssh "sudo sshcommand acl-add dokku [description]"
也试过了变化,以
的.git /配置
[remote "myclient_ec2"]
url = [email protected]_ssh:myapp
fetch = +refs/heads/*:refs/remotes/dokku/*
git push myclient_ec2 master
无济于事