capistrano3でRailsアプリをデプロイしようとトライしていますがエラーが発生してしまいます。
自力では全く手も足も出ない状況になってしまい困っております。
どなたかご教示お願いできないでしょうか?
実行コード [vagrant@localhost chibi]$ bundle exec cap production deploy --trace --dry-run
一つ目のエラー? fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'
サイトで調べて以下を実行してみましたが解決出来ませんでした。(同じエラ-がでてしまいます)
[vagrant@localhost chibi]$ git config --global user.name "Yamada Taro" [vagrant@localhost chibi]$ git config --global user.email "example@gmail.com" [vagrant@localhost chibi]$ git config --global core.editor "Brackets" [vagrant@localhost chibi]$ git config --global color.ui auto [vagrant@localhost chibi]$ git config --global core.excludesfile ~/.gitignore_global [vagrant@localhost chibi]$ git config --global core.autocrlf input [vagrant@localhost chibi]$ vi ~/.gitignore_global gitignore_globalを作成しファイルやディレクトリのパターンを記述。 [vagrant@localhost chibi]$ git update-ref -d HEAD [vagrant@localhost chibi]$ git reset HEAD [vagrant@localhost chibi]$ git update-ref -d HEAD [vagrant@localhost chibi]$ git reset HEAD
二つ目のエラー?(サイトで調べられずなにも出来ずにいます) Skipping task `puma:restart'. Capistrano tasks may only be invoked once. Since task `puma:restart' was previously invoked, invoke("puma:restart") at /home/vagrant/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/capistrano3-puma-3.1.1/lib/capistrano/tasks/puma.rake:96 will be skipped. If you really meant to run this task again, use invoke!("puma:restart")
三つ目のエラー?(エラーなのかどうかもわかりません。) THIS BEHAVIOR MAY CHANGE IN A FUTURE VERSION OF CAPISTRANO. Please join the conversation here if this affects you. https://github.com/capistrano/capistrano/issues/1686
のようにエラーのようなものが表示されています。
サイトで調べても解決出来ないので嵌ってしまいました。
初心者の私ではそもそもエラーなのかどうがもわからない状態なのでファイルの記述が不足しているのか間違っているのかの判断もつかない状態です。
どなたか、解決方法などを教えていただけないでしょうか?
宜しくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。