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 `构建';:/找不到home/releases/#{release_number}/Gemfile(Bundler::GemfileNotFound) INFO--:执行[“/home/shared/bundle/ruby/2.1.0/bin/unicorn”、“-c”、“/home/current/config/unicorn/production.rb”、“-E”、“deployment”、“-D”、{12=>#}](in/home/releases/20140714144301) 调试[b59ba27c]I[2014-07-14T14:43:33.495683#27897]信息--:分叉子级重新执行。。。 调试[b59ba27c]/home/ 调试[b59ba27c]lic/.rvm/gems/ruby-2.1。2@global/gems/bundler-1.6.3/lib/bundler/definition.rb:23:in'build':/home/releases/20140710032913/Gemfile未找到(bundler::GemfileNotFound)_Ruby On Rails_Ruby_Unicorn_Capistrano3 - Fatal编程技术网

Ruby on rails `构建';:/找不到home/releases/#{release_number}/Gemfile(Bundler::GemfileNotFound) INFO--:执行[“/home/shared/bundle/ruby/2.1.0/bin/unicorn”、“-c”、“/home/current/config/unicorn/production.rb”、“-E”、“deployment”、“-D”、{12=>#}](in/home/releases/20140714144301) 调试[b59ba27c]I[2014-07-14T14:43:33.495683#27897]信息--:分叉子级重新执行。。。 调试[b59ba27c]/home/ 调试[b59ba27c]lic/.rvm/gems/ruby-2.1。2@global/gems/bundler-1.6.3/lib/bundler/definition.rb:23:in'build':/home/releases/20140710032913/Gemfile未找到(bundler::GemfileNotFound)

Ruby on rails `构建';:/找不到home/releases/#{release_number}/Gemfile(Bundler::GemfileNotFound) INFO--:执行[“/home/shared/bundle/ruby/2.1.0/bin/unicorn”、“-c”、“/home/current/config/unicorn/production.rb”、“-E”、“deployment”、“-D”、{12=>#}](in/home/releases/20140714144301) 调试[b59ba27c]I[2014-07-14T14:43:33.495683#27897]信息--:分叉子级重新执行。。。 调试[b59ba27c]/home/ 调试[b59ba27c]lic/.rvm/gems/ruby-2.1。2@global/gems/bundler-1.6.3/lib/bundler/definition.rb:23:in'build':/home/releases/20140710032913/Gemfile未找到(bundler::GemfileNotFound),ruby-on-rails,ruby,unicorn,capistrano3,Ruby On Rails,Ruby,Unicorn,Capistrano3,我敢肯定,问题源于这样一个事实:在零停机部署的情况下,unicorn正在缓存这个发行号:20140710032913。我已将capistrano设置为保留5个版本。部署5次后,旧版本号将被滚除。如何强制unicorn使用当前文件 可能重复:在我的{Rails.root}/config/unicorn/{environment}.rb文件中,我需要: INFO -- : executing ["/home/shared/bundle/ruby/2.1.0/bin/unicorn", "-c", "

我敢肯定,问题源于这样一个事实:在零停机部署的情况下,unicorn正在缓存这个发行号:20140710032913。我已将capistrano设置为保留5个版本。部署5次后,旧版本号将被滚除。如何强制unicorn使用当前文件

可能重复:

在我的
{Rails.root}/config/unicorn/{environment}.rb文件中,我需要:

INFO -- : executing ["/home/shared/bundle/ruby/2.1.0/bin/unicorn", "-c", "/home/current/config/unicorn/production.rb", "-E", "deployment", "-D", {12=>#<Kgio::UNIXServer:fd 12>}] (in /home/releases/20140714144301)
DEBUG[b59ba27c]     I, [2014-07-14T14:43:33.495683 #27897]  INFO -- : forked child re-executing...
DEBUG[b59ba27c]     /home/
DEBUG[b59ba27c]     lic/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.3/lib/bundler/definition.rb:23:in `build': /home/releases/20140710032913/Gemfile not found (Bundler::GemfileNotFound)
before_exec do |_server|
  ENV['BUNDLE_GEMFILE'] = "#{working_directory}/Gemfile"
end