无法为应用程序生成进程

时间:2015-01-15 01:29:16

标签: ruby-on-rails passenger

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

403 Forbidden

[ 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 .....

1 个答案:

答案 0 :(得分:1)

我用这种方式编辑了这个文件/ 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;
        }}

它现在正在工作。

PS。我还指着乘客在/etc/nginx/nginx.conf

中使用rvm版本的红宝石
passenger_ruby /home/deplopy/.rvm/gems/ruby-2.1.2/wrappers/ruby;