我正在与其他人构建和配置的项目一起工作。我克隆了他们的GitHub存储库,并更改了deploy.rb中的引用以从我的存储库中提取。
我对该应用程序进行了一些修复,并将其推送到我的存储库中。然后跑了bundle exec cap production deploy
。该站点仍在使用旧代码。我还需要做什么?新部署的版本显示在“版本”文件夹中。“当前”软链接指向旧代码,但是将其更改为新版本不会执行任何操作。
请帮忙。这是浪费时间。谢谢。
编辑:从运行日志输出bundle exec cap production deploy
..
ThinkPad-L412:~/projects/programservices$ bundle exec cap production deploy
DEBUG [0634a583] Running /usr/bin/env [ -d ~/.rbenv/versions/2.1.5 ] as [email protected]
DEBUG [0634a583] Command: [ -d ~/.rbenv/versions/2.1.5 ]
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
[email protected]'s password:???????
DEBUG [0634a583] Finished in 13.330 seconds with exit status 0 (successful).
INFO [a4a516db] Running /usr/bin/env mkdir -p /tmp/programservices/ as [email protected]
DEBUG [a4a516db] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env mkdir -p /tmp/programservices/ )
INFO [a4a516db] Finished in 0.058 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/programservices/git-ssh.sh 0.0%
INFO Uploading /tmp/programservices/git-ssh.sh 100.0%
INFO [e12b8559] Running /usr/bin/env chmod +x /tmp/programservices/git-ssh.sh as [email protected]
DEBUG [e12b8559] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env chmod +x /tmp/programservices/git-ssh.sh )
INFO [e12b8559] Finished in 0.063 seconds with exit status 0 (successful).
DEBUG [73c708ef] Running /usr/bin/env git ls-remote [email protected]:bbulpett/programservices.git as [email protected]
DEBUG [73c708ef] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/programservices/git-ssh.sh /usr/bin/env git ls-remote [email protected]:bbulpett/programservices.git )
DEBUG [73c708ef] ab8f7c2703c6e40d6c265c312b8c361bd5af967b HEAD
DEBUG [73c708ef] ab8f7c2703c6e40d6c265c312b8c361bd5af967b refs/heads/master
DEBUG [73c708ef] Finished in 0.469 seconds with exit status 0 (successful).
INFO [d88fccf2] Running /usr/bin/env mkdir -pv /home/deployer/programservices/shared /home/deployer/programservices/releases as [email protected]
DEBUG [d88fccf2] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env mkdir -pv /home/deployer/programservices/shared /home/deployer/programservices/releases )
INFO [d88fccf2] Finished in 0.072 seconds with exit status 0 (successful).
INFO [7094084e] Running /usr/bin/env mkdir -pv /home/deployer/programservices/shared/log /home/deployer/programservices/shared/tmp/pids /home/deployer/programservices/shared/tmp/cache /home/deployer/programservices/shared/tmp/sockets /home/deployer/programservices/shared/vendor/bundle /home/deployer/programservices/shared/public/system /home/deployer/programservices/shared/public/uploads /home/deployer/programservices/shared/public/assets as [email protected]
DEBUG [7094084e] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env mkdir -pv /home/deployer/programservices/shared/log /home/deployer/programservices/shared/tmp/pids /home/deployer/programservices/shared/tmp/cache /home/deployer/programservices/shared/tmp/sockets /home/deployer/programservices/shared/vendor/bundle /home/deployer/programservices/shared/public/system /home/deployer/programservices/shared/public/uploads /home/deployer/programservices/shared/public/assets )
INFO [7094084e] Finished in 0.060 seconds with exit status 0 (successful).
INFO [875ecaea] Running /usr/bin/env mkdir -pv /home/deployer/programservices/shared/config /home/deployer/programservices/shared as [email protected]
DEBUG [875ecaea] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env mkdir -pv /home/deployer/programservices/shared/config /home/deployer/programservices/shared )
INFO [875ecaea] Finished in 0.062 seconds with exit status 0 (successful).
DEBUG [67e3bcee] Running /usr/bin/env [ -f /home/deployer/programservices/shared/config/database.yml ] as [email protected]
DEBUG [67e3bcee] Command: [ -f /home/deployer/programservices/shared/config/database.yml ]
DEBUG [67e3bcee] Finished in 0.060 seconds with exit status 0 (successful).
DEBUG [b95ab732] Running /usr/bin/env [ -f /home/deployer/programservices/shared/.rbenv-vars ] as [email protected]
DEBUG [b95ab732] Command: [ -f /home/deployer/programservices/shared/.rbenv-vars ]
DEBUG [b95ab732] Finished in 0.063 seconds with exit status 0 (successful).
DEBUG [23b630c0] Running /usr/bin/env [ -f /home/deployer/programservices/repo/HEAD ] as [email protected]
DEBUG [23b630c0] Command: [ -f /home/deployer/programservices/repo/HEAD ]
DEBUG [23b630c0] Finished in 0.057 seconds with exit status 0 (successful).
INFO The repository mirror is at /home/deployer/programservices/repo
DEBUG [b1bf3187] Running /usr/bin/env if test ! -d /home/deployer/programservices/repo; then echo "Directory does not exist '/home/deployer/programservices/repo'" 1>&2; false; fi as [email protected]
DEBUG [b1bf3187] Command: if test ! -d /home/deployer/programservices/repo; then echo "Directory does not exist '/home/deployer/programservices/repo'" 1>&2; false; fi
DEBUG [b1bf3187] Finished in 0.064 seconds with exit status 0 (successful).
DEBUG [a73e4ce4] Running /usr/bin/env cd /home/deployer/programservices/repo && git rev-parse --short HEAD as [email protected]
DEBUG [a73e4ce4] Command: cd /home/deployer/programservices/repo && git rev-parse --short HEAD
DEBUG [a73e4ce4] 00c39b3
DEBUG [a73e4ce4] Finished in 0.064 seconds with exit status 0 (successful).
INFO [807acc5c] Running /usr/bin/env git remote update as [email protected]
DEBUG [807acc5c] Command: cd /home/deployer/programservices/repo && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env git remote update )
DEBUG [807acc5c] Fetching origin
DEBUG [807acc5c] From github.com:bbulpett/programservices
DEBUG [807acc5c] 00c39b3..ab8f7c2 master -> master
INFO [807acc5c] Finished in 0.592 seconds with exit status 0 (successful).
DEBUG [c9aab581] Running /usr/bin/env cd /home/deployer/programservices/repo && git rev-parse --short HEAD as [email protected]
DEBUG [c9aab581] Command: cd /home/deployer/programservices/repo && git rev-parse --short HEAD
DEBUG [c9aab581] ab8f7c2
DEBUG [c9aab581] Finished in 0.061 seconds with exit status 0 (successful).
DEBUG [ca421bdf] Running /usr/bin/env if test ! -d /home/deployer/programservices/repo; then echo "Directory does not exist '/home/deployer/programservices/repo'" 1>&2; false; fi as [email protected]
DEBUG [ca421bdf] Command: if test ! -d /home/deployer/programservices/repo; then echo "Directory does not exist '/home/deployer/programservices/repo'" 1>&2; false; fi
DEBUG [ca421bdf] Finished in 0.057 seconds with exit status 0 (successful).
INFO [8db23646] Running /usr/bin/env mkdir -p /home/deployer/programservices/releases/20151209131310 as [email protected]
DEBUG [8db23646] Command: cd /home/deployer/programservices/repo && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/programservices/git-ssh.sh /usr/bin/env mkdir -p /home/deployer/programservices/releases/20151209131310 )
INFO [8db23646] Finished in 0.064 seconds with exit status 0 (successful).
INFO [c26205f6] Running /usr/bin/env git archive master | tar -x -C /home/deployer/programservices/releases/20151209131310 as [email protected]
DEBUG [c26205f6] Command: cd /home/deployer/programservices/repo && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/programservices/git-ssh.sh /usr/bin/env git archive master | tar -x -C /home/deployer/programservices/releases/20151209131310 )
INFO [c26205f6] Finished in 0.509 seconds with exit status 0 (successful).
INFO [634ca844] Running /usr/bin/env mkdir -pv /home/deployer/programservices/releases/20151209131310/config /home/deployer/programservices/releases/20151209131310 as [email protected]
DEBUG [634ca844] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env mkdir -pv /home/deployer/programservices/releases/20151209131310/config /home/deployer/programservices/releases/20151209131310 )
INFO [634ca844] Finished in 0.062 seconds with exit status 0 (successful).
DEBUG [925ebb92] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/config/database.yml ] as [email protected]
DEBUG [925ebb92] Command: [ -L /home/deployer/programservices/releases/20151209131310/config/database.yml ]
DEBUG [925ebb92] Finished in 0.059 seconds with exit status 1 (failed).
DEBUG [157f183a] Running /usr/bin/env [ -f /home/deployer/programservices/releases/20151209131310/config/database.yml ] as [email protected]
DEBUG [157f183a] Command: [ -f /home/deployer/programservices/releases/20151209131310/config/database.yml ]
DEBUG [157f183a] Finished in 0.057 seconds with exit status 0 (successful).
INFO [f7481261] Running /usr/bin/env rm /home/deployer/programservices/releases/20151209131310/config/database.yml as [email protected]
DEBUG [f7481261] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env rm /home/deployer/programservices/releases/20151209131310/config/database.yml )
INFO [f7481261] Finished in 0.060 seconds with exit status 0 (successful).
INFO [8761c8bf] Running /usr/bin/env ln -s /home/deployer/programservices/shared/config/database.yml /home/deployer/programservices/releases/20151209131310/config/database.yml as [email protected]
DEBUG [8761c8bf] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/config/database.yml /home/deployer/programservices/releases/20151209131310/config/database.yml )
INFO [8761c8bf] Finished in 0.068 seconds with exit status 0 (successful).
DEBUG [e0b0a6d2] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/.rbenv-vars ] as [email protected]
DEBUG [e0b0a6d2] Command: [ -L /home/deployer/programservices/releases/20151209131310/.rbenv-vars ]
DEBUG [e0b0a6d2] Finished in 0.059 seconds with exit status 1 (failed).
DEBUG [14db68a7] Running /usr/bin/env [ -f /home/deployer/programservices/releases/20151209131310/.rbenv-vars ] as [email protected]
DEBUG [14db68a7] Command: [ -f /home/deployer/programservices/releases/20151209131310/.rbenv-vars ]
DEBUG [14db68a7] Finished in 0.061 seconds with exit status 1 (failed).
INFO [f18839d0] Running /usr/bin/env ln -s /home/deployer/programservices/shared/.rbenv-vars /home/deployer/programservices/releases/20151209131310/.rbenv-vars as [email protected]
DEBUG [f18839d0] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/.rbenv-vars /home/deployer/programservices/releases/20151209131310/.rbenv-vars )
INFO [f18839d0] Finished in 0.061 seconds with exit status 0 (successful).
INFO [7ca506a6] Running /usr/bin/env mkdir -pv /home/deployer/programservices/releases/20151209131310 /home/deployer/programservices/releases/20151209131310/tmp /home/deployer/programservices/releases/20151209131310/tmp /home/deployer/programservices/releases/20151209131310/tmp /home/deployer/programservices/releases/20151209131310/vendor /home/deployer/programservices/releases/20151209131310/public /home/deployer/programservices/releases/20151209131310/public /home/deployer/programservices/releases/20151209131310/public as [email protected]
DEBUG [7ca506a6] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env mkdir -pv /home/deployer/programservices/releases/20151209131310 /home/deployer/programservices/releases/20151209131310/tmp /home/deployer/programservices/releases/20151209131310/tmp /home/deployer/programservices/releases/20151209131310/tmp /home/deployer/programservices/releases/20151209131310/vendor /home/deployer/programservices/releases/20151209131310/public /home/deployer/programservices/releases/20151209131310/public /home/deployer/programservices/releases/20151209131310/public )
INFO [7ca506a6] Finished in 0.061 seconds with exit status 0 (successful).
DEBUG [dfc70755] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/log ] as [email protected]
DEBUG [dfc70755] Command: [ -L /home/deployer/programservices/releases/20151209131310/log ]
DEBUG [dfc70755] Finished in 0.060 seconds with exit status 1 (failed).
DEBUG [a8178276] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/log ] as [email protected]
DEBUG [a8178276] Command: [ -d /home/deployer/programservices/releases/20151209131310/log ]
DEBUG [a8178276] Finished in 0.055 seconds with exit status 0 (successful).
INFO [6a707866] Running /usr/bin/env rm -rf /home/deployer/programservices/releases/20151209131310/log as [email protected]
DEBUG [6a707866] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env rm -rf /home/deployer/programservices/releases/20151209131310/log )
INFO [6a707866] Finished in 0.063 seconds with exit status 0 (successful).
INFO [35fd265e] Running /usr/bin/env ln -s /home/deployer/programservices/shared/log /home/deployer/programservices/releases/20151209131310/log as [email protected]
DEBUG [35fd265e] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/log /home/deployer/programservices/releases/20151209131310/log )
INFO [35fd265e] Finished in 0.062 seconds with exit status 0 (successful).
DEBUG [e02cb3b1] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/tmp/pids ] as [email protected]
DEBUG [e02cb3b1] Command: [ -L /home/deployer/programservices/releases/20151209131310/tmp/pids ]
DEBUG [e02cb3b1] Finished in 0.060 seconds with exit status 1 (failed).
DEBUG [008b24ea] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/tmp/pids ] as [email protected]
DEBUG [008b24ea] Command: [ -d /home/deployer/programservices/releases/20151209131310/tmp/pids ]
DEBUG [008b24ea] Finished in 0.090 seconds with exit status 1 (failed).
INFO [3a61bccd] Running /usr/bin/env ln -s /home/deployer/programservices/shared/tmp/pids /home/deployer/programservices/releases/20151209131310/tmp/pids as [email protected]
DEBUG [3a61bccd] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/tmp/pids /home/deployer/programservices/releases/20151209131310/tmp/pids )
INFO [3a61bccd] Finished in 0.060 seconds with exit status 0 (successful).
DEBUG [e1bcbd1c] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/tmp/cache ] as [email protected]
DEBUG [e1bcbd1c] Command: [ -L /home/deployer/programservices/releases/20151209131310/tmp/cache ]
DEBUG [e1bcbd1c] Finished in 0.060 seconds with exit status 1 (failed).
DEBUG [e7fc2ac8] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/tmp/cache ] as [email protected]
DEBUG [e7fc2ac8] Command: [ -d /home/deployer/programservices/releases/20151209131310/tmp/cache ]
DEBUG [e7fc2ac8] Finished in 0.059 seconds with exit status 0 (successful).
INFO [46202405] Running /usr/bin/env rm -rf /home/deployer/programservices/releases/20151209131310/tmp/cache as [email protected]
DEBUG [46202405] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env rm -rf /home/deployer/programservices/releases/20151209131310/tmp/cache )
INFO [46202405] Finished in 0.088 seconds with exit status 0 (successful).
INFO [68cfe2df] Running /usr/bin/env ln -s /home/deployer/programservices/shared/tmp/cache /home/deployer/programservices/releases/20151209131310/tmp/cache as [email protected]
DEBUG [68cfe2df] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/tmp/cache /home/deployer/programservices/releases/20151209131310/tmp/cache )
INFO [68cfe2df] Finished in 0.063 seconds with exit status 0 (successful).
DEBUG [808d98bf] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/tmp/sockets ] as [email protected]
DEBUG [808d98bf] Command: [ -L /home/deployer/programservices/releases/20151209131310/tmp/sockets ]
DEBUG [808d98bf] Finished in 0.058 seconds with exit status 1 (failed).
DEBUG [ff190950] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/tmp/sockets ] as [email protected]
DEBUG [ff190950] Command: [ -d /home/deployer/programservices/releases/20151209131310/tmp/sockets ]
DEBUG [ff190950] Finished in 0.062 seconds with exit status 1 (failed).
INFO [b70cc18d] Running /usr/bin/env ln -s /home/deployer/programservices/shared/tmp/sockets /home/deployer/programservices/releases/20151209131310/tmp/sockets as [email protected]
DEBUG [b70cc18d] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/tmp/sockets /home/deployer/programservices/releases/20151209131310/tmp/sockets )
INFO [b70cc18d] Finished in 0.064 seconds with exit status 0 (successful).
DEBUG [2e607f2e] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/vendor/bundle ] as [email protected]
DEBUG [2e607f2e] Command: [ -L /home/deployer/programservices/releases/20151209131310/vendor/bundle ]
DEBUG [2e607f2e] Finished in 0.059 seconds with exit status 1 (failed).
DEBUG [f3db1877] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/vendor/bundle ] as [email protected]
DEBUG [f3db1877] Command: [ -d /home/deployer/programservices/releases/20151209131310/vendor/bundle ]
DEBUG [f3db1877] Finished in 0.058 seconds with exit status 1 (failed).
INFO [1c7428ea] Running /usr/bin/env ln -s /home/deployer/programservices/shared/vendor/bundle /home/deployer/programservices/releases/20151209131310/vendor/bundle as [email protected]
DEBUG [1c7428ea] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/vendor/bundle /home/deployer/programservices/releases/20151209131310/vendor/bundle )
INFO [1c7428ea] Finished in 0.060 seconds with exit status 0 (successful).
DEBUG [cab985d6] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/public/system ] as [email protected]
DEBUG [cab985d6] Command: [ -L /home/deployer/programservices/releases/20151209131310/public/system ]
DEBUG [cab985d6] Finished in 0.060 seconds with exit status 1 (failed).
DEBUG [8aa30e54] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/public/system ] as [email protected]
DEBUG [8aa30e54] Command: [ -d /home/deployer/programservices/releases/20151209131310/public/system ]
DEBUG [8aa30e54] Finished in 0.057 seconds with exit status 1 (failed).
INFO [06c24b49] Running /usr/bin/env ln -s /home/deployer/programservices/shared/public/system /home/deployer/programservices/releases/20151209131310/public/system as [email protected]
DEBUG [06c24b49] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/public/system /home/deployer/programservices/releases/20151209131310/public/system )
INFO [06c24b49] Finished in 0.063 seconds with exit status 0 (successful).
DEBUG [4465e9ac] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/public/uploads ] as [email protected]
DEBUG [4465e9ac] Command: [ -L /home/deployer/programservices/releases/20151209131310/public/uploads ]
DEBUG [4465e9ac] Finished in 0.061 seconds with exit status 1 (failed).
DEBUG [75dd3879] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/public/uploads ] as [email protected]
DEBUG [75dd3879] Command: [ -d /home/deployer/programservices/releases/20151209131310/public/uploads ]
DEBUG [75dd3879] Finished in 0.057 seconds with exit status 1 (failed).
INFO [f7475256] Running /usr/bin/env ln -s /home/deployer/programservices/shared/public/uploads /home/deployer/programservices/releases/20151209131310/public/uploads as [email protected]
DEBUG [f7475256] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/public/uploads /home/deployer/programservices/releases/20151209131310/public/uploads )
INFO [f7475256] Finished in 0.062 seconds with exit status 0 (successful).
DEBUG [b2e91c7a] Running /usr/bin/env [ -L /home/deployer/programservices/releases/20151209131310/public/assets ] as [email protected]
DEBUG [b2e91c7a] Command: [ -L /home/deployer/programservices/releases/20151209131310/public/assets ]
DEBUG [b2e91c7a] Finished in 0.060 seconds with exit status 1 (failed).
DEBUG [6bcdc73c] Running /usr/bin/env [ -d /home/deployer/programservices/releases/20151209131310/public/assets ] as [email protected]
DEBUG [6bcdc73c] Command: [ -d /home/deployer/programservices/releases/20151209131310/public/assets ]
DEBUG [6bcdc73c] Finished in 0.061 seconds with exit status 0 (successful).
INFO [cfee9f81] Running /usr/bin/env rm -rf /home/deployer/programservices/releases/20151209131310/public/assets as [email protected]
DEBUG [cfee9f81] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env rm -rf /home/deployer/programservices/releases/20151209131310/public/assets )
INFO [cfee9f81] Finished in 0.077 seconds with exit status 0 (successful).
INFO [7240892f] Running /usr/bin/env ln -s /home/deployer/programservices/shared/public/assets /home/deployer/programservices/releases/20151209131310/public/assets as [email protected]
DEBUG [7240892f] Command: ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 /usr/bin/env ln -s /home/deployer/programservices/shared/public/assets /home/deployer/programservices/releases/20151209131310/public/assets )
INFO [7240892f] Finished in 0.062 seconds with exit status 0 (successful).
DEBUG [c1dc9241] Running /usr/bin/env if test ! -d /home/deployer/programservices/releases/20151209131310; then echo "Directory does not exist '/home/deployer/programservices/releases/20151209131310'" 1>&2; false; fi as [email protected]
DEBUG [c1dc9241] Command: if test ! -d /home/deployer/programservices/releases/20151209131310; then echo "Directory does not exist '/home/deployer/programservices/releases/20151209131310'" 1>&2; false; fi
DEBUG [c1dc9241] Finished in 0.053 seconds with exit status 0 (successful).
INFO [12caea9e] Running ~/.rbenv/bin/rbenv exec bundle install --path /home/deployer/programservices/shared/bundle --without development test --deployment --quiet as [email protected]
DEBUG [12caea9e] Command: cd /home/deployer/programservices/releases/20151209131310 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 ~/.rbenv/bin/rbenv exec bundle install --path /home/deployer/programservices/shared/bundle --without development test --deployment --quiet )
INFO [12caea9e] Finished in 84.762 seconds with exit status 0 (successful).
DEBUG [d80966a6] Running /usr/bin/env if test ! -d /home/deployer/programservices/releases/20151209131310; then echo "Directory does not exist '/home/deployer/programservices/releases/20151209131310'" 1>&2; false; fi as [email protected]
DEBUG [d80966a6] Command: if test ! -d /home/deployer/programservices/releases/20151209131310; then echo "Directory does not exist '/home/deployer/programservices/releases/20151209131310'" 1>&2; false; fi
DEBUG [d80966a6] Finished in 0.056 seconds with exit status 0 (successful).
INFO [1b785133] Running ~/.rbenv/bin/rbenv exec bundle exec rake assets:precompile as [email protected]
DEBUG [1b785133] Command: cd /home/deployer/programservices/releases/20151209131310 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.1.5 RAILS_ENV=production ~/.rbenv/bin/rbenv exec bundle exec rake assets:precompile )
DEBUG [1b785133] rake aborted!
DEBUG [1b785133] LoadError: cannot load such file -- net/ssh
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/fog-1.35.0/lib/fog/joyent/compute.rb:3:in `require'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/fog-1.35.0/lib/fog/joyent/compute.rb:3:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/fog-1.35.0/lib/fog/joyent.rb:1:in `require'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/fog-1.35.0/lib/fog/joyent.rb:1:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/fog-1.35.0/lib/fog.rb:41:in `require'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/fog-1.35.0/lib/fog.rb:41:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:3:in `require'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:3:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwave/storage.rb:9:in `require'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwave/storage.rb:9:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwave.rb:78:in `require'
DEBUG [1b785133] /home/deployer/programservices/shared/bundle/ruby/2.1.0/gems/carrierwave-0.10.0/lib/carrierwave.rb:78:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/releases/20151209131310/config/application.rb:7:in `<top (required)>'
DEBUG [1b785133] /home/deployer/programservices/releases/20151209131310/Rakefile:5:in `require'
DEBUG [1b785133] /home/deployer/programservices/releases/20151209131310/Rakefile:5:in `<top (required)>'
DEBUG [1b785133] (See full trace by running task with --trace)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
LoadError: cannot load such file -- net/ssh
...
尽管最后出现了错误,但实际上它确实将应用程序转移到“ releases”文件夹中。有新版本的文件,但服务器仍在运行旧应用程序。
好吧,所以我开始工作了。Capistrano正在部署到Linode框中,“当前”应用程序将成为新部署的版本。这是一个巨大的屁股痛。这些东西起作用了:
注释掉Capfile中的以下几行(如本SO文章所示):
#require 'capistrano/rails/assets'
#require 'capistrano/rails/migrations'
并把这行
require 'capistrano/rails'
捆绑更新以下宝石:
sshkit
载波
多雾路段
雾阿里云
在我的本地(Ubuntu 14.04)计算机上重新安装rbenv:
sudo apt-get install rbenv
在deploy.rb中设置一个“自定义路径”,以指向远程linode vps上的rbenv(也是Ubu 14.04):
set :rbenv_custom_path, '/home/deployer/.rbenv'
我希望我采取的某些步骤会对某人有所帮助。作为Capistrano的新手,我发现它明显缺乏文档资料,并对使用它的人表示同情。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句