无法为应用程序生成进程
Could not spawn process for application
我搜索并找到了一些与此问题有关的问题,但没有正确答案或根本没有答案。如何解决这个问题
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;
}}
现在可以使用了。
ps。我还在 /etc/nginx/nginx.conf
中将乘客指向 ruby 的 rvm 版本
passenger_ruby /home/deplopy/.rvm/gems/ruby-2.1.2/wrappers/ruby;
我搜索并找到了一些与此问题有关的问题,但没有正确答案或根本没有答案。如何解决这个问题
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;
}}
现在可以使用了。
ps。我还在 /etc/nginx/nginx.conf
passenger_ruby /home/deplopy/.rvm/gems/ruby-2.1.2/wrappers/ruby;