cloud9で作成したrailsアプリをconohaのvpsにデプロイしたいと考えており、
(初心者向け)vpsを契約して、capistrano3でRailsアプリをデプロイするまで [その1 サーバー設定編]
(初心者向け)vpsを契約して、Capistrano3でRailsアプリをデプロイするまで [その2 ローカル設定編]
こちらの記事をほぼそのままにデプロイを進めているのですが、
4-1 サーバーにてアプリの用のDB作成
において、記載の通りローカル側で$bundle exec cap production deploy:db_create
を行ったところ、エラーが出てしまい。解決方法が全く分からない状況になってしまいました。。
どこの部分の修正が必要になるのかお分かりになりますでしょうか?
エラーを記載致します。
#<Thread:0x00001cfbb28@/home/user/.rvm/gems/ruby-2.5.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true): Traceback (most recent call last): 1: from /home/user/.rvm/gems/ruby-2.5.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute' /home/user/.rvm/gems/ruby-2.5.3/gems/sshkit-1.20.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as user@192.xx.xx.xx: if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi exit status: 1 (SSHKit::Runner::ExecuteError) if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi stdout: Nothing written if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi stderr: Directory does not exist '/var/www/test01/current' (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as user@192.xx.xx.xx: if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi exit status: 1 if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi stdout: Nothing written if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi stderr: Directory does not exist '/var/www/test01/current' Caused by: SSHKit::Command::Failed: if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi exit status: 1 if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi stdout: Nothing written if test ! -d /var/www/test01/current; then echo "Directory does not exist '/var/www/test01/current'" 1>&2; false; fi stderr: Directory does not exist '/var/www/test01/current' Tasks: TOP => deploy:db_create (See full trace by running task with --trace)
全くの初心者になりますが宜しくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。