0

新しいサーバーへの最初のデプロイが次のエラー メッセージで失敗しているようです。

failed: "sh -c 'cat /var/www/my_project/production/current/REVISION'" on 192.xxx.xxx.xxx

これは私の最初のカピストラーノ展開ではなく、以前にこのようなものに遭遇したことを覚えていません...これを修正するための指針は本当に感謝しています.

これは展開ログの詳細です

 [192.xxx.xxx.xxx] executing command
    command finished in 1202ms
    triggering after callbacks for `deploy:finalize_update'
  * 2013-09-09 18:54:37 executing `postgresql:symlink'
  * executing "ln -nfs /var/www/my_application/production/shared/config/database.yml /var/www/my_application/production/releases/20130909132425/config/database.yml"
    servers: ["192.xxx.xxx.xxx"]
    [192.xxx.xxx.xxx] executing command
    command finished in 1042ms
    triggering after callbacks for `deploy:update_code'
  * 2013-09-09 18:54:38 executing `deploy:assets:precompile'
  * executing "cat /var/www/my_application/production/current/REVISION"
    servers: ["192.xxx.xxx.xxx"]
    [192.xxx.xxx.xxx] executing command
    command finished in 1039ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/my_application/production/releases/20130909132425; true"
    servers: ["192.xxx.xxx.xxx"]
    [192.xxx.xxx.xxx] executing command
    command finished in 1103ms
failed: "sh -c 'cat /var/www/my_application/production/current/REVISION'" on 192.xxx.xxx.xxx

cap deploy:check正常に実行されています

「必要な依存関係がすべてインストールされているようです」

4

2 に答える 2

1

ここに投稿された問題に遭遇しました:

https://github.com/capistrano/capistrano/issues/224および

capistrano エラー: ...../current: そのようなファイルまたはディレクトリはありません

deploy/assets最初の展開の行をコメントする必要がありました。

于 2013-09-09T16:00:22.817 に答える
0

どのように展開しようとしていますか? サーバーへの最初のデプロイは deploy:cold で行う必要があります

cap deploy:cold
于 2013-09-09T15:28:23.807 に答える