passenger

Foreman not working with NGINX

孤者浪人 提交于 2019-12-07 02:36:53
问题 I'm trying to use Foreman (version 0.31.0) to manage our application's processes but I'm not having much luck with nginx (nginx/1.0.10 + Phusion Passenger 3.0.11). Here's the relevant line from my Procfile: nginx: sudo /home/ubuntu/nginx/sbin/nginx When I start the app, Foreman reports that nginx is started and then immediately terminated: $ foreman start 21:18:28 nginx.1 | started with pid 27347 21:18:28 nginx.1 | process terminated 21:18:28 system | sending SIGTERM to all processes However,

Passenger Rack app 'cannot infer basepath'

吃可爱长大的小学妹 提交于 2019-12-07 01:07:26
问题 This question was migrated from Server Fault because it can be answered on Stack Overflow. Migrated 9 years ago . I have a simple config.ru file for my Sinatra app. require 'sinatra' require 'app' run Sinatra::Application However, Passenger is failing with the error no such file to load -- app . I've tried using the 1.9 method require_relative but that now causes the error cannot infer basepath . I'm currently using the very hacky require File.join(File.dirname(__FILE__), 'app' ) , which is

nginx 504 Gateway Time-out

时光毁灭记忆、已成空白 提交于 2019-12-06 23:12:56
问题 I'm running a rails3.0.7 project with phusion-passenger on nginx. While I was doing a ajax which took about 15 mins to process. It jump up an error with firebug which said "504 Gateway Time-out" after 10 mins from calling the ajax. Could someon give me some idea of how I could find the problem. Thanks, ben environment OS: mac osx 10.6.7 ruby: 1.9.2p180 installed with rvm gem: 1.6.2 passenger 3.0.7 rails: 3.0.7 mysql: 5.5.10 installed with brew nginx: 1.0.0 stand alone installed with passender

SELinux permission denied to Phusion Passenger for redmine

依然范特西╮ 提交于 2019-12-06 16:44:38
I am trying to install Redmine on CentOS 6.3 but I continue to get this error in the log file Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog (/usr/lib/ruby/gems/1.8/gems/passenger-4.0.20/buildout /agents/PassengerWatchdog): Permission denied (errno=13) I have been looking online and cannot find this error anywhere or any way to fix it. I have tried changing permissions to the folder to 777 and apache:apache but neither work. The only solution that I have come up with to get redmine to work is to set SELinux to disabled or permissive

Do apps running in Phusion Passenger need to reconnect ActiveRecord on fork?

家住魔仙堡 提交于 2019-12-06 14:48:31
问题 Per this documentation: http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_smart_spawning_gotcha_1_unintentional_file_descriptor_sharing Socket connections continue to be shared after a Smart spawn operation. The example listed is for Memcached. Does one have to similarly reconnect ActiveRecord in this case as well? Something like: PhusionPassenger.on_event(:starting_worker_process) do |forked| if forked # We're in smart spawning mode. ActiveRecord.establish_connection(...)

How to Stop Phusion Passenger

∥☆過路亽.° 提交于 2019-12-06 14:37:51
问题 I use the Phusion Passenger module (mod_passenger) for the Apache HTTP Server and Capistrano for deployment of rails applications. I want to 'stop' a Ruby on Rails application from Phusion Passenger. How can i do that? Thanks in advance 回答1: You can't stop it without editing the Apache config and taking out or commenting out the VirtualHost block for the Rails application and then restarting the Apache server. 回答2: Do you want to stop it for good? Edit the apache conf file, change the

Phusion Passenger + Nginx Virtual Host Configuration for Ruby on Rails Application in Debian 6

橙三吉。 提交于 2019-12-06 14:31:23
问题 What my question is how do i map all the instances with port 80 with appropriate identical sub domains using Phusion Passenger + Nginx under Debian 6 for the following scenario. Note : i am newbie to ruby on rails and server hosting , i unable to express my vision as question , please forgive me if i am wrong or correct me. Hi , i am having an one product developed using ruby on rails , going to host in an dedicated server with 32 GB Ram and 8 Core Server Processor. Each client should have

Does Node.js expose per-HTTP-request environment variables?

痴心易碎 提交于 2019-12-06 13:39:33
Working with Node.js via Passenger 5.0.15 on Apache, I am seeking a method to retrieve per-HTTP-request environment variables inside a Node.js http.IncomingMessage object or any alternative. An example of what I mean by a per-request environment variable, would be one set by Apache mod_rewrite. This is not a real-world example, and I'm aware any path-related details could be easily retrieved in the Node app. Apache modules may set environment variables for the request 1 : # Apache sets an environment variable for this HTTP request RewriteRule path/([^/]+) - [E=pathvar:$1] In Ruby's Rack, the

Passenger + Rails 3.1.1 = Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound)

只谈情不闲聊 提交于 2019-12-06 13:14:32
问题 I know there are already some threads about this error, but none of them solved my problem. I started a new rails app with rails 3.1.1 and RVM Ruby 1.9.2-p180. It works when I use rails server and go to localhost:3000 But when I try to host it like my other Rails 3.0.x apps using Passenger (OSX pref pane) and visit it in the browser I get the following error: Error message: Could not find rake-0.9.2 in any of the sources (Bundler::GemNotFound) Exception class: PhusionPassenger::UnknownError

apache + redmine 403 - premissions are good

喜欢而已 提交于 2019-12-06 11:35:33
问题 i searched sth about this a lot but solutions doesnt help so much.I tried to upgrade redmine to 2.6.5 on my FreeBSD but i have 403 error. apache error log: [autoindex:error] AH01276: Cannot serve directory /usr/local/www/redmine/public/: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive my httpd conf: <VirtualHost example.com:80> DocumentRoot "/usr/local/www/redmine/public" ServerName example.com FastCgiServer /usr/local/www/redmine