代码之家  ›  专栏  ›  技术社区  ›  Marc

在EC2上部署Dokku,初始git推送失败

  •  0
  • Marc  · 技术社区  · 7 年前

    我试图在EC2(ubuntu)上部署Dokku 0.10.4,但没有成功(我使用的是Mac)。我遵循了手册中的所有安装步骤,但没有任何乐趣

    git push myclient_ec2 master

    我的设置如下:

    Host myclient_ssh
       Hostname example.com
       User ubuntu
       IdentityFile ~/.ssh/AWS_ID.pem
    

    .git/config

    [remote "myclient_ec2"]
        url = dokku@example.com:myapp
        fetch = +refs/heads/*:refs/remotes/dokku/*
    

    安装顺序如下

    ssh -i ~/.ssh/AWS_ID.pem ubuntu@example.com wget https://raw.githubusercontent.com/dokku/dokku/v0.10.4/bootstrap.sh
    ssh -i ~/.ssh/AWS_ID.pem ubuntu@example.com sudo DOKKU_TAG=v0.10.4 bash bootstrap.sh
    ssh -i ~/.ssh/AWS_ID.pem ubuntu@example.com rm bootstrap.sh*
    
    ssh -i ~/.ssh/AWS_ID.pem dokku@example.com apps:create myapp
    git remote add myclient_ec2 dokku@example.com:myapp
    cat ~/.ssh/AWS_ID.pem | ssh myclient_ssh "sudo sshcommand acl-add dokku [description]"
    

    .git/config

    [remote "myclient_ec2"]
        url = dokku@myclient_ssh:myapp
        fetch = +refs/heads/*:refs/remotes/dokku/*
    

    git push myclient_ec2主机

    无济于事

    1 回复  |  直到 7 年前
        1
  •  0
  •   Marc    7 年前

    ssh - i ~/.ssh/AWS.pem ubuntu@ec_ip
    echo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGsp3HJnOqJ9BuHkQ5Myt2z3LEKQC_etc_id_rsa.pub | sudo dokku ssh-keys:add admin