Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 试图部署与capistrano有关的。cap部署时出错:冷 执行“cd”-- /home/harris/harrisrobin.co/releases/20140128225905&& RAILS\u ENV=生产RAILS\u GROUPS=资产包exec rake 资产:预编译“ 服务器:[“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运行时。请参阅,以获取可用资源的列表 运行时。**[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 “**[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 “**[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 块(2级)输入要求'**[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 要求'**[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 要求'**[out::198.199.122.209]**[out::198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/config/application.rb:7: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] /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毫秒内完成 *[部署:更新代码]回滚*执行“rm-rf/home/harris/harrisrobin.co/releases/20140128225905;true” 服务器:[“198.199.122.209”] [198.199.122.209]执行命令 命令在354ms内完成失败:“rvm_path=$HOME/.rvm$HOME/.rvm/bin/rvm shell'default'-c'cd-- /home/harris/harrisrobin.co/releases/20140128225905&& RAILS\u ENV=生产RAILS\u GROUPS=资产包exec rake 资产:198.199.122.209上的“预编译”_Ruby On Rails_Digital Ocean - Fatal编程技术网

Ruby on rails 试图部署与capistrano有关的。cap部署时出错:冷 执行“cd”-- /home/harris/harrisrobin.co/releases/20140128225905&& RAILS\u ENV=生产RAILS\u GROUPS=资产包exec rake 资产:预编译“ 服务器:[“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运行时。请参阅,以获取可用资源的列表 运行时。**[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 “**[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 “**[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 块(2级)输入要求'**[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 要求'**[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 要求'**[out::198.199.122.209]**[out::198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/config/application.rb:7: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] /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毫秒内完成 *[部署:更新代码]回滚*执行“rm-rf/home/harris/harrisrobin.co/releases/20140128225905;true” 服务器:[“198.199.122.209”] [198.199.122.209]执行命令 命令在354ms内完成失败:“rvm_path=$HOME/.rvm$HOME/.rvm/bin/rvm shell'default'-c'cd-- /home/harris/harrisrobin.co/releases/20140128225905&& RAILS\u ENV=生产RAILS\u GROUPS=资产包exec rake 资产:198.199.122.209上的“预编译”

Ruby on rails 试图部署与capistrano有关的。cap部署时出错:冷 执行“cd”-- /home/harris/harrisrobin.co/releases/20140128225905&& RAILS\u ENV=生产RAILS\u GROUPS=资产包exec rake 资产:预编译“ 服务器:[“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运行时。请参阅,以获取可用资源的列表 运行时。**[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 “**[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 “**[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 块(2级)输入要求'**[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 要求'**[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 要求'**[out::198.199.122.209]**[out::198.199.122.209] /home/harris/harrisrobin.co/releases/20140128225905/config/application.rb:7: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] /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毫秒内完成 *[部署:更新代码]回滚*执行“rm-rf/home/harris/harrisrobin.co/releases/20140128225905;true” 服务器:[“198.199.122.209”] [198.199.122.209]执行命令 命令在354ms内完成失败:“rvm_path=$HOME/.rvm$HOME/.rvm/bin/rvm shell'default'-c'cd-- /home/harris/harrisrobin.co/releases/20140128225905&& RAILS\u ENV=生产RAILS\u GROUPS=资产包exec rake 资产:198.199.122.209上的“预编译”,ruby-on-rails,digital-ocean,Ruby On Rails,Digital Ocean,有什么想法吗?我不知道这意味着什么: 命令在354ms内完成失败:“rvm_path=$HOME/.rvm $HOME/.rvm/bin/rvm shell“默认”-c“cd-- 我遵循此指南,在cap deploy:cold(冷)时卡住了: 您似乎缺少JavaScript运行时库。请使用以下方法在服务器上安装NodeJS: curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y

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

命令在354ms内完成失败:“rvm_path=$HOME/.rvm $HOME/.rvm/bin/rvm shell“默认”-c“cd--

我遵循此指南,在cap deploy:cold(冷)时卡住了:

您似乎缺少JavaScript运行时库。请使用以下方法在服务器上安装NodeJS:

curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
另外,对于DO和Ubuntu上的rails部署,这是所有步骤(以及视频演练)的重要资源:

看看这个问题嗨!你确定你已经将我链接到正确的问题了吗?除非我遗漏了什么,否则我看不出这个问题对我有什么帮助。干杯,谢谢,你的错误似乎是
找不到JavaScript运行时。请参阅https://github.com/sstephenson/execjs 有关可用运行时的列表,请参见您突出显示的部分。该问题解决了javascript运行时错误。我尝试了其中的所有建议,但没有任何效果。谢谢您的链接。我会继续查找!