我已经设置了amazon EC2实例(工作)和Github回购(工作正常)。 当我尝试使用Github上回购部署应用EC2,我得到这个错误:无法使用git向EC2部署应用程序
** [IP] Permission denied (publickey).
** [IP] fatal: Could not read from remote repository.
**
** Please make sure you have the correct access rights
** and the repository exists.
我缺少什么?我可以使用副本部署应用程序到EC,但不能使用github。
我需要设置公钥吗?
编辑:SETUP
set :application, "project_name"
set :user, 'username'
set :password, "password"
set :domain, "IP.amazonaws.com"
set :deploy_to, "/path_to_directory"
set :use_sudo, false
role :web, domain
role :app, domain
role :db, domain, :primary => true
set :assets_role, [:app]
default_run_options[:pty] = true
set :repository, "[email protected]:user/repo.git"
set :scm, "git"
谢谢
嗨威廉,谢谢你的回答。请检查出更新后的OP,我添加了有关部署的信息 – user984621