Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/68.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.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 RoR应用程序将不会加载,遵循基本教程_Ruby On Rails_Ruby_Nginx_Webfaction - Fatal编程技术网

Ruby on rails RoR应用程序将不会加载,遵循基本教程

Ruby on rails RoR应用程序将不会加载,遵循基本教程,ruby-on-rails,ruby,nginx,webfaction,Ruby On Rails,Ruby,Nginx,Webfaction,我可以在我的本地服务器上运行此功能,但在我在Web派系的服务器上,我得到以下stacktrace: Stacktrace: There was an error in your Gemfile, and Bundler cannot continue. (Bundler::GemfileError) /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler/dsl.rb:12:in `rescue in evaluate

我可以在我的本地服务器上运行此功能,但在我在Web派系的服务器上,我得到以下stacktrace:

Stacktrace:

There was an error in your Gemfile, and Bundler cannot continue. (Bundler::GemfileError)
  /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler/dsl.rb:12:in `rescue in evaluate'
  /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler/dsl.rb:6:in `evaluate'
  /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
  /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'
  /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler.rb:112:in `setup'
  /home/vegan/webapps/lab95ror/gems/gems/bundler-1.2.3/lib/bundler/setup.rb:17:in `<top (required)>'
  /usr/local/lib/ruby20/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
  /usr/local/lib/ruby20/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
  /usr/local/lib/ruby20/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
  /home/vegan/webapps/lab95ror/gems/gems/passenger-4.0.2/lib/phusion_passenger/loader_shared_helpers.rb:212:in `run_load_path_setup_code'
  /home/vegan/webapps/lab95ror/gems/gems/passenger-4.0.2/helper-scripts/rack-loader.rb:69:in `load_app'
  /home/vegan/webapps/lab95ror/gems/gems/passenger-4.0.2/helper-scripts/rack-loader.rb:96:in `<module:App>'
  /home/vegan/webapps/lab95ror/gems/gems/passenger-4.0.2/helper-scripts/rack-loader.rb:4:in `<module:PhusionPassenger>'
  /home/vegan/webapps/lab95ror/gems/gems/passenger-4.0.2/helper-scripts/rack-loader.rb:3:in `<main>'
已尝试使用与我的开发人员计算机上相同的版本重新安装bundler

[vegan@web349 lab95]$ gem install bundler -v 1.3.5
Successfully installed bundler-1.3.5
1 gem installed
Installing ri documentation for bundler-1.3.5...
Installing RDoc documentation for bundler-1.3.5...
[vegan@web349 lab95]$ bundle install
-bash: bundle: command not found
我也在他们的论坛上发布了:

Gemfile

在“很抱歉,出现问题”之后更新Nginx错误日志。


听起来Bundler可能不在您的系统路径中。从OnRails安装:

export GEM_HOME=$PWD/gems
export RUBYLIB=$PWD/lib
export PATH=$PWD/bin:$PATH
然后,尝试安装/重新安装捆绑程序:

gem install bundler

$rvm gemset使用全局和绑定


我在尝试用上面的代码安装时遇到了类似的问题

当我尝试访问该页面时,该错误在何处发生。当我的index.html文件位于/app/public/时,它正在工作,所以我知道我的DNS、namesever的东西正在工作。你能手动执行
捆绑安装吗?不幸的是,我得到了-bash:bundle:command未找到,我没有根访问权限。这个问题可能会有帮助:谢谢你的回答。这就是我在学习完那个教程后的结局。目前我的服务器根本不会启动或停止,所以一旦问题解决,我会回到这里。祝你好运,重新启动并运行。请告知此解决方案是否最终解决了您的问题。再次感谢,似乎我在安装某些东西时使用了错误的目录。然而,现在我只是得到了一个错误:“很抱歉,出了点问题。”我在上面重新发布了我的nginx错误日志。嗯,听起来Bundler安装成功了,所以最初的问题得到了解决,你离让事情顺利运行更近了。错误似乎并不表明它与Bundler有关。。。你有没有试过在你的
应用程序.config.secret\u令牌上大惊小怪?我认为有几个消息来源可能将此错误归因于Rails特定版本中的错误:
[ 2013-06-12 14:15:10.5040 22627/7f825b76f700 Pool2/Spawner.h:739 ]: [App 22748 stdout]
[ 2013-06-12 14:15:11.7469 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]         SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
[ 2013-06-12 14:15:11.7470 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]         This poses a security threat. It is strongly recommended that you
[ 2013-06-12 14:15:11.7470 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]         provide a secret to prevent exploits that may be possible from crafted
[ 2013-06-12 14:15:11.7470 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]         cookies. This will not be supported in future versions of Rack, and
[ 2013-06-12 14:15:11.7470 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]         future versions will even invalidate your existing user cookies.
[ 2013-06-12 14:15:11.7470 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]
[ 2013-06-12 14:15:11.7470 22627/7f825b72e700 Pool2/Spawner.h:159 ]: [App 22748 stderr]         Called from: /home/vegan/webapps/lab95ror/gems/gems/actionpack-3.2.3/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.
export GEM_HOME=$PWD/gems
export RUBYLIB=$PWD/lib
export PATH=$PWD/bin:$PATH
gem install bundler