デプロイ実行時に以下のエラーが出て10日以上も解決出来ずに困っています。
$ bundle exec cap production deploy [f2bea5cb] fatal: Not a git repository (or any of the parent directories): .git (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as kinoko@wonder-gate.com: git exit status: 128 git stdout: fatal: Not a git repository (or any of the parent directories): .git git stderr: Nothing written SSHKit::Command::Failed: git exit status: 128 git stdout: fatal: Not a git repository (or any of the parent directories): .git git stderr: Nothing written Tasks: TOP => deploy:set_current_revision => git:set_current_revision (See full trace by running task with --trace)
「対象としてるものがgitのリポジトリではない」と言っているみたいなのです。
ローカルで以下のようにやってみました。
$ git init $ git clone https://github.com/chibipanda/ChibiApp.git $ git add . $ git commit -m "first commit" $ git remote add origim https://github.com/chibipanda/ChibiApp.git $ git push -u origin master Counting objects: 8, done. Compressing objects: 100% (4/4), done. Writing objects: 100% (6/6), 913 bytes | 0 bytes/s, done. Total 6 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local object. To https://github.com/chibipanda/ChibiApp.git 544c3a3..123490e master -> master Branch master set up to track remote branch master from origin.
VPS側でも $ git init してみました。
config/deploy.rb set :application, "panda" set :rails_env, "production" set :repo_url, "https//github.com/chibipanda/ChibiApp.git set :branch, "master"
再度、$ bundle exec cap production deploy を実行しましたがエラーは解決できませんでした。
サイトでググっても可決方法がわからないのでどなたかご教示お願いできないでしょうか?
自力では何が足りないのかわからない状況です。助けてください。おねがいします。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。