新手问题 cap deploy 的 precompile 無法通過!但是在該資料夾 precompile 正常!

jossjoss54 · 2014年10月15日 · 最后由 jossjoss54 回复于 2014年10月15日 · 2385 次阅读

原本會吃不到 bootstrap,但後來 import 後就好了。

DEBUG[abfcd0b2]     Tasks: TOP => assets:precompile
D, [2014-10-15T15:55:35.554321 #1667] DEBUG -- tcpsocket[3fd75d88fcb0]: received packet nr 1275 type 94 len 76
I, [2014-10-15T15:55:35.554378 #1667]  INFO -- net.ssh.connection.session[3fd75c53a73c]: channel_data: 59 47b
DEBUG[abfcd0b2]     (See full trace by running task with --trace)
D, [2014-10-15T15:55:35.603252 #1667] DEBUG -- tcpsocket[3fd75d88fcb0]: read 36 bytes
D, [2014-10-15T15:55:35.603431 #1667] DEBUG -- tcpsocket[3fd75d88fcb0]: received packet nr 1276 type 96 len 12
I, [2014-10-15T15:55:35.603502 #1667]  INFO -- net.ssh.connection.session[3fd75c53a73c]: channel_eof: 59
D, [2014-10-15T15:55:35.623093 #1667] DEBUG -- tcpsocket[3fd75d88fcb0]: read 104 bytes
D, [2014-10-15T15:55:35.623296 #1667] DEBUG -- tcpsocket[3fd75d88fcb0]: received packet nr 1277 type 98 len 44
I, [2014-10-15T15:55:35.623383 #1667]  INFO -- net.ssh.connection.session[3fd75c53a73c]: channel_request: 59 exit-status false
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host *.*.*.*: rake exit status: 1
rake stdout: Nothing written
rake stderr: Nothing written

gem lock

GEM
  remote: http://rubygems.org/
  specs:
    actionmailer (4.0.2)
      actionpack (= 4.0.2)
      mail (~> 2.5.4)
    actionpack (4.0.2)
      activesupport (= 4.0.2)
      builder (~> 3.1.0)
      erubis (~> 2.7.0)
      rack (~> 1.5.2)
      rack-test (~> 0.6.2)
    activemodel (4.0.2)
      activesupport (= 4.0.2)
      builder (~> 3.1.0)
    activerecord (4.0.2)
      activemodel (= 4.0.2)
      activerecord-deprecated_finders (~> 1.0.2)
      activesupport (= 4.0.2)
      arel (~> 4.0.0)
    activerecord-deprecated_finders (1.0.3)
    activerecord-session_store (0.1.0)
      actionpack (>= 4.0.0, < 5)
      activerecord (>= 4.0.0, < 5)
      railties (>= 4.0.0, < 5)
    activesupport (4.0.2)
      i18n (~> 0.6, >= 0.6.4)
      minitest (~> 4.2)
      multi_json (~> 1.3)
      thread_safe (~> 0.1)
      tzinfo (~> 0.3.37)
    annotate (2.5.0)
      rake
    arel (4.0.2)
    aws-sdk (1.52.0)
      aws-sdk-v1 (= 1.52.0)
    aws-sdk-v1 (1.52.0)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
    bcrypt-ruby (3.1.2)
    bootstrap-sass (3.1.1.1)
      sass (~> 3.2)
    builder (3.1.4)
    capistrano (3.2.1)
      i18n
      rake (>= 10.0.0)
      sshkit (~> 1.3)
    capistrano-bundler (1.1.3)
      capistrano (~> 3.1)
      sshkit (~> 1.2)
    capistrano-ext (1.2.1)
      capistrano (>= 1.0.0)
    capistrano-rails (1.1.2)
      capistrano (~> 3.1)
      capistrano-bundler (~> 1.1)
    capistrano-rvm (0.1.1)
      capistrano (~> 3.0)
      sshkit (~> 1.2)
    ckeditor (4.0.11)
      mime-types
      orm_adapter (~> 0.5.0)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.4)
      climate_control (>= 0.0.3, < 1.0)
    coffee-rails (4.0.1)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0, < 5.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.7.0)
    colorize (0.7.3)
    erubis (2.7.0)
    execjs (2.2.1)
    hike (1.2.3)
    i18n (0.6.9)
    jbuilder (1.5.3)
      activesupport (>= 3.0.0)
      multi_json (>= 1.2.0)
    jquery-fileupload-rails (0.4.1)
      actionpack (>= 3.1)
      railties (>= 3.1)
    jquery-rails (3.1.1)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    json (1.8.1)
    kaminari (0.15.1)
      actionpack (>= 3.0.0)
      activesupport (>= 3.0.0)
    mail (2.5.4)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.25.1)
    mini_portile (0.6.0)
    minitest (4.7.5)
    multi_json (1.10.1)
    multimap (1.1.3)
    mysql2 (0.3.16)
    net-scp (1.2.1)
      net-ssh (>= 2.6.5)
    net-ssh (2.9.1)
    netrc (0.7.7)
    newrelic_rpm (3.9.4.245)
    nokogiri (1.6.2.1)
      mini_portile (= 0.6.0)
    orm_adapter (0.5.0)
    paperclip (4.1.1)
      activemodel (>= 3.0.0)
      activesupport (>= 3.0.0)
      cocaine (~> 0.5.3)
      mime-types
    polyglot (0.3.5)
    pr_geohash (1.0.0)
    protected_attributes (1.0.7)
      activemodel (>= 4.0.1, < 5.0)
    rack (1.5.2)
    rack-test (0.6.2)
      rack (>= 1.0)
    rails (4.0.2)
      actionmailer (= 4.0.2)
      actionpack (= 4.0.2)
      activerecord (= 4.0.2)
      activesupport (= 4.0.2)
      bundler (>= 1.3.0, < 2.0)
      railties (= 4.0.2)
      sprockets-rails (~> 2.0.0)
    railties (4.0.2)
      actionpack (= 4.0.2)
      activesupport (= 4.0.2)
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (10.3.2)
    rdoc (4.1.1)
      json (~> 1.4)
    rest-client (1.7.2)
      mime-types (>= 1.16, < 3.0)
      netrc (~> 0.7)
    rsolr (1.0.10)
      builder (>= 2.1.2)
    s3_direct_upload (0.1.7)
      coffee-rails (>= 3.1)
      jquery-fileupload-rails (~> 0.4.1)
      rails (>= 3.1)
      sass-rails (>= 3.1)
    sass (3.2.19)
    sass-rails (4.0.3)
      railties (>= 4.0.0, < 5.0)
      sass (~> 3.2.0)
      sprockets (~> 2.8, <= 2.11.0)
      sprockets-rails (~> 2.0)
    sdoc (0.4.0)
      json (~> 1.8)
      rdoc (~> 4.0, < 5.0)
    simple_captcha2 (0.2.2)
      rails (>= 3.1, < 4.1)
    sprockets (2.11.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    sqlite3 (1.3.9)
    sshkit (1.5.1)
      colorize
      net-scp (>= 1.1.2)
      net-ssh (>= 2.8.0)
    sunspot (2.1.1)
      pr_geohash (~> 1.0)
      rsolr (~> 1.0.7)
    sunspot_rails (2.1.1)
      nokogiri
      rails (>= 3)
      sunspot (= 2.1.1)
    sunspot_solr (2.1.1)
    thor (0.19.1)
    thread_safe (0.3.4)
    tilt (1.4.1)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    turbolinks (2.2.2)
      coffee-rails
    tzinfo (0.3.39)
    uglifier (2.5.1)
      execjs (>= 0.3.0)
      json (>= 1.8.0)

PLATFORMS
  ruby

DEPENDENCIES
  activerecord-session_store
  annotate (= 2.5.0)
  aws-sdk
  bcrypt-ruby (= 3.1.2)
  bootstrap-sass (~> 3.1.1)
  capistrano (~> 3.2.1)
  capistrano-ext (~> 1.2.1)
  capistrano-rails (~> 1.1.2)
  capistrano-rvm (~> 0.1.1)
  ckeditor (= 4.0.11)
  coffee-rails (~> 4.0.0)
  jbuilder (~> 1.2)
  jquery-rails
  kaminari (= 0.15.1)
  multimap (~> 1.1.3)
  mysql2
  newrelic_rpm
  paperclip (= 4.1.1)
  protected_attributes (= 1.0.7)
  rails (= 4.0.2)
  rest-client (~> 1.7.2)
  s3_direct_upload
  sass-rails (~> 4.0.0)
  sdoc
  simple_captcha2
  sqlite3
  sunspot_rails (= 2.1.1)
  sunspot_solr (= 2.1.1)
  turbolinks
  uglifier (>= 1.3.0)

我用 ssh doctor 显示一切正常

SSH agent forwarding report
---------------------------

1. [success] `repo_url` setting ok

2. [success] ssh private key file exists

3. [success] `ssh-agent` process seems to be running locally

4. [success] `ssh-agent` process recognized by `ssh-add` command

5. [success] ssh private keys added to `ssh-agent`

6. [success] application repository accessible from local machine

7. [success] all hosts using passwordless login

8. [success] `forward_agent` ok for all hosts

9. [success] ssh agent successfully forwarded to remote hosts

10. [success] application repository accessible from remote hosts

需要 登录 后方可回复, 如果你还没有账号请 注册新账号