ruby-on-rails - 无法为应用程序生成进程

标签 ruby-on-rails passenger

我搜索并找到了一些与此问题有关的问题,但没有正确答案或根本没有答案。如何解决这个问题

403 禁止访问

[ 2015-01-15 02:37:25.2282 24300/b638eb40 Pool2/Implementation.cpp:287 ]: Could not spawn process for application ........../current: An error occured while starting up the preloader.
          Error ID: 71201b7d
    ....
          Message from application: ERROR: Failed to build gem native extension.

            /usr/bin/ruby2.1 extconf.rb
        #rake 10.1.0 not found in GEM_PATH
        /home/deploy/................n `initialize': Permission denied @ rb_sysopen - /usr/bin/rdoc (Errno::EACCES)

        from extconf.rb:19:in `<main>'
        bundler 1.7.12
        executable-hooks 1.3.2
        rdoc 4.1.0

        extconf failed, exit code 1`enter code here`
        Gem files will remain installed in .....

最佳答案

我以这种方式编辑了这个文件/etc/nginx/sites-enabled/default:

server {
        listen 80 default_server;
        rails_env           production;
        root /home/username/app-name/current/public;
        index index.html index.htm;

        # Make site accessible from http://localhost/
        server_name domain-name;
        passenger_enabled   on;
        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
                root html;
        }}

它现在正在运行。

附言。我还在 /etc/nginx/nginx.conf

中将 passenger 指向了 ruby​​ 的 rvm 版本
passenger_ruby /home/deplopy/.rvm/gems/ruby-2.1.2/wrappers/ruby;

关于ruby-on-rails - 无法为应用程序生成进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27955460/

相关文章:

ruby-on-rails - Rails 更新操作的路由助手是什么?

ruby-on-rails - 如何将 .yml 文件中的数据加载到数据库?

ruby-on-rails - Sucker Punch Job 被 Passenger 杀死?还是死锁?

python - Django 应用程序 - 使用 UWSGI 或 Phusion Passenger 进行部署

ruby-on-rails - 在 Rails 6 上定义 secret_key_base 的正确方法是什么?

ruby-on-rails - 如何设置 config.action_controller.default_url_options = { :host = '#' '} on per environment basis

ruby-on-rails - 在 rake 任务中接受来自控制台/命令提示符的用户输入

ruby-on-rails - passenger meet Library not loaded错误: liblzma. 5.dylib

ruby-on-rails-3 - Varnish 导轨设计注销配置

nginx - 将 Phusion Passenger 安装为动态 Nginx 模块;模块似乎没有加载但没有错误