Web应用程序无法启动。 Ruby On rails

时间:2017-01-04 15:33:49

标签: ruby-on-rails ruby apache ubuntu

我遇到了启动Ruby应用程序的问题。 我安装了Ubuntu 14.04,Apache / 2.4.7,ruby 2.2.5p319和一些Web Apllication。 当我尝试进入应用程序页面时,我在浏览器中看到异常和跟踪。




      Web application could not be started

        cannot load such file -- bundler/setup (LoadError)
        /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:245:in     
        `block in run_load_path_setup_code'
        /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:348:in 
        `running_bundler'
        /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:243:in 
        `run_load_path_setup_code'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in 
        `'
        /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in 

还有环境变量:



    APACHE_PID_FILE = /var/run/apache2/apache2.pid
    SHELL = /bin/bash
    APACHE_RUN_USER = www-data
    PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXXybOMMs
    USER = appuser
    APACHE_LOG_DIR = /var/log/apache2
    PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PWD = /var/app
    APACHE_RUN_GROUP = www-data
    LANG = C
    NODE_PATH = /usr/share/passenger/node
    SHLVL = 0
    HOME = /home/appuser
    LOGNAME = appuser
    APACHE_LOCK_DIR = /var/lock/apache2
    APACHE_RUN_DIR = /var/run/apache2
    IN_PASSENGER = 1
    PYTHONUNBUFFERED = 1
    RAILS_ENV = production
    RACK_ENV = production
    WSGI_ENV = production
    NODE_ENV = production
    PASSENGER_APP_ENV = production
    SERVER_PROTOCOL = HTTP/1.1
    SERVER_ADDR = x.x.x.x
    REMOTE_ADDR = y.y.y.y
    REQUEST_URI = /
    SSL_TLS_SNI = myaddr.com
    HTTPS = on
    SERVER_PORT = 443
    SERVER_NAME = myaddr.com
    SERVER_SOFTWARE = Apache/2.4.7 (Ubuntu)
    SERVER_ADMIN = youremail@example.com
    REMOTE_PORT = 51589
    DOCUMENT_ROOT = /var/myapp/public
    QUERY_STRING = 
    REQUEST_METHOD = GET



    RUBY_VERSION = 2.2.6
    RUBY_PLATFORM = i386-linux-gnu
    RUBY_ENGINE = ruby
    RubyGems version = 2.4.5.2

似乎Ruby之前版本的某些部分仍然对WebApp有影响,但我无法找到纠正它的位置。 感谢。

0 个答案:

没有答案