0
  • 执行“cd -- /home/harris/harrisrobin.co/releases/20140128225905 && RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile”服务器:[“198.199.122.209”] [198.199.122.209] 执行命令** [ out :: 198.199.122.209] rake 中止!** [out :: 198.199.122.209] ** [out :: 198.199.122.209] 找不到 JavaScript 运行时。有关可用运行时的列表,请参阅https://github.com/sstephenson/execjs。** [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 /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 要求'** [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 需要' ** [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 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 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: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/config/application.rb:7: 在<top (required)>' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/Rakefile:4:in 需要' ** [out :: 198.199.122.209] ** [out :: 198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/Rakefile:4:in `' ** [out :: 198.199。 122.209] ** [out :: 198.199.122.209](通过使用 --trace 运行任务查看完整跟踪)** [out :: 198.199.122.209] 命令在 2183 毫秒内完成 * [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=assets bundle exec rake assets:precompile'" on 198.199.122.209

有任何想法吗 ?我不知道这意味着什么:

命令在 354 毫秒内完成失败:“rvm_path=$HOME/.rvm $HOME/.rvm/bin/rvm-shell 'default' -c 'cd --

我正在遵循本指南并陷入 cap deploy:cold : https ://coderwall.com/p/yz8cha

4

1 回答 1

0

您似乎缺少 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

于 2016-04-24T06:53:59.433 回答