Amazon EC2 インスタンス (動作) と Github リポジトリ (うまく動作) をセットアップしました。Github リポジトリを使用してアプリを 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.
私は何が欠けていますか?copyを使用してアプリを EC にデプロイできますが、github を使用するとデプロイできません。
公開鍵を設定するには何が必要ですか?
編集:セットアップ
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, "git@github.com:user/repo.git"
set :scm, "git"
ありがとうございました