簡體   English   中英

試圖與capistrano一起部署。 上限部署時出現錯誤:冷

[英]trying to deploy to DO with capistrano. got an error when cap deploy:cold

  • 執行“ cd-/home/harris/harrisrobin.co/releases/20140128225905 && RAILS_ENV = production RAILS_GROUPS = assets bundle exec rake asset:precompile”服務器:[“ 198.199.122.209”] [198.199.122.209]執行命令** [出:: 198.199.122.209]耙子中止了! ** [out :: 198.199.122.209] ** [out :: 198.199.122.209]找不到JavaScript運行時。 有關可用運行時的列表,請參見https://github.com/sstephenson/execjs ** [出:: 198.199.122.209] ** [出:: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs /runtimes.rb:51:in autodetect' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs.rb:5:in [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ ruby / 2.0.0 / gems / execjs-2.0.2 / lib / execjs.rb:4:in <top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/uglifier-2.4.0/lib/uglifier.rb:3:in require'** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/shared/bundle/ruby/2.0.0/gems/uglifier-2.4.0/lib/uglifier.rb:3:in <top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in require'** [out :: 198.199.122.209] ** [out :: 19 8.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:76:in block (2 levels) in require' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:72:in each'** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler- 1.5.2 / lib / bundler / runtime.rb:72:在in中block in require' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in ''** [out :: 198.199.122.209] ** [out :: 198.199.122.209] / home /harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler/runtime.rb:61:in require' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/.rvm/gems/ruby-2.0.0-p353/gems/bundler-1.5.2/lib/bundler.rb:131:in require'** [out :: 198.199.122.209] ** [出:: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/confi 克/ application.rb中:7:在<top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/Rakefile:4:in require'** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/Rakefile:4:in`'** [out :: 198.199.122.209] ** [輸出:: 198.199.122.209](通過運行帶有--trace的任務來查看完整的跟蹤信息)** [輸出:: 198.199.122.209]命令在2183ms內完成* [deploy:update_code]回滾*執行“ rm -rf /home/harris/harrisrobin.co/releases/20140128225905; “ true”服務器:[“ 198.199.122.209”] [198.199.122.209]執行命令命令在354毫秒內完成失敗:“ rvm_path = $ HOME / .rvm $ HOME / .rvm / bin / rvm-shell'default'-c'cd -/home/harris/harrisrobin.co/releases/20140128225905 && RAILS_ENV = production RAILS_GROUPS =資產捆綁exec rake資產:precompile'“於198.199.122.209

有任何想法嗎 ? 我不知道這是什么意思:

在354ms完成命令失敗:“rvm_path = $ HOME / .rvm $ HOME / .rvm /斌/ RVM殼 '默認' -c“CD -

我正在遵循本指南並被卡在cap deploy:cold: https : //coderwall.com/p/yz8cha

似乎您缺少JavaScript運行時庫。 使用以下方法在服務器上安裝NodeJS:

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs

另外,對於一般在DO和Ubuntu上進行Rails部署而言,這對於所有步驟(以及視頻演練)都是不錯的資源: https : //gorails.com/deploy/ubuntu/14.04

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM