###前提・実現したいこと
rails5のアプリをさくらのVPSへcapistranoをつかってデプロイしたい。
###発生している問題・エラーメッセージ
SSHKit::Runner::ExecuteError: Exception while executing as deploy@xxx.xx.xxx.xx: git exit status: 128★ git stdout: Could not chdir to home directory /home/deploy: Permission denied bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) bash: /home/deploy/.bashrc: Permission denied /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) Could not create directory '/home/deploy/.ssh'. Failed to add the host to the list of known hosts (/home/deploy/.ssh/known_hosts). Error reading response length from authentication socket. Permission denied (publickey). fatal: The remote end hung up unexpectedly git stderr: Nothing written
一つずつ解決していこうと思っているのですが、まず★部分の原因から調べたのですがわかりません…
###該当のソースコード
lock '3.7.1' set :application, 'third_app' set :repo_url, 'git@bitbucket.org:xxx/xxx_app.git' set :deploy_to, '/home/deploy/staging' set :pty, true set :rbenv_ruby, '2.3.1' set :rbenv_type, :system set :ssh_options, :port => "ポート番号" after 'deploy:publishing', 'deploy:restart' namespace :deploy do desc 'Restart application' task :restart do invoke 'unicorn:restart' end
リモートの環境構築ができていない。
もしくはリモートの情報を登録できていないのが原因だとは思うのですが、、、
よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/22 04:59