passenger

Apache/Rails/Passenger Displaying Site Index?

爱⌒轻易说出口 提交于 2019-12-19 07:04:11
问题 I have a Rails app that I have successfully tested with Mongrel and Webkit. Now I want to test deployment. I set up a VMWare Image using Ubuntu 8.04. I have installed Rails following this method https://help.ubuntu.com/community/RubyOnRails with the exception of using Gems 1.3 instead of 1.2. I have configured and installed Passenger. However, when I visit my sites index (http://some.ip.that.i'm.testing/) I simply get the directory index of my rails site. I should note that since I'm testing

Could not find rake-10.1.0 in any of the sources

余生颓废 提交于 2019-12-18 17:53:06
问题 I have been working with rails and have been trying to setup passenger with rake 10.1.0 and it sends back me this errors. Here is the link to the error.Website LInk It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it's supposed to. Please check the following: * Is this app supposed to be run as the `rails` user? * Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter

Phusion Passenger is throwing errors after upgrading Ruby and Rails using rvm

强颜欢笑 提交于 2019-12-18 12:56:18
问题 I recently upgraded my Rails setup to 3.1.3 and I'm having issues with Phusion Passenger loading an older app on this server. I got everything running on a testapp but I'm still having issues with this one app. When I run the Webrick server on port 3000 my app runs perfectly but when attempting to access it through the virtual host I continue to get Passenger errors. Here's the info: Error being thrown by Passenger Ruby (Rack) application could not be started Error message: Could not find

Why is this permissions error occurring with mod_passenger.so?

我们两清 提交于 2019-12-18 12:21:43
问题 I'm setting up a production RHEL 6 server with RVM and Passenger. I've gotten through installing RVM (to my home dir), installing Passenger, and adding the required lines to httpd.conf : LoadModule passenger_module /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11/ext/apache2/mod_passenger.so PassengerRoot /home/em/.rvm/gems/ruby-1.9.2-p290@rails_3_production/gems/passenger-3.0.11 PassengerRuby /home/em/.rvm/wrappers/ruby-1.9.2-p290@rails_3_production/ruby But when I

Moving to rbenv breaks passenger (nginx)

。_饼干妹妹 提交于 2019-12-18 11:17:06
问题 I moved from RVM to rbenv on my production server. I uninstalled rvm using "rvm implode" and installed rbenv, ruby 1.9.2 , rails, passenger and nginx-module. I have not modified my originlal nginx.conf apart from changing the passenger_root as follows: 1st Try: passenger_root /root/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/passenger-3.0.9; passenger_ruby /root/.rbenv/versions/1.9.2-p290/bin/ruby; 2nd Try: passenger_root /root/.rbenv/shims/passenger; passenger_ruby /root/.rbenv/shims

Is a system-wide install of RVM a bad idea? [closed]

。_饼干妹妹 提交于 2019-12-18 11:06:06
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I'm confused about whether, on a server, you're supposed to install RVM as a regular user or do a system-wide installation, and, if the latter, how you're supposed to do things like bundle install without using sudo . Is there any definite set of guidelines on what you're

why did gitlab 6 switch back to unicorn?

有些话、适合烂在心里 提交于 2019-12-18 10:54:26
问题 Gitlab 6.0 was released yesterday. I am curious to know why they switched to Unicorn from Puma. Versions prior to 5 were using Unicorn. I thought switch to Puma was for the better. Is there a technical reason for this switch? 回答1: GitLab B.V. CEO here, I agree with Hongli his comment that "If there are issues then they are likely in Gitlab's code.". We tried to fix them but GitLab is one of the largest open source Rails applications and the issues where hard to reproduce. So in the end we

What is optimal value for Phusion passenger PassengerMaxRequestQueueSize

夙愿已清 提交于 2019-12-18 10:08:12
问题 I know this depends on the box hardware, but for example if there are set 100 processes, the default queue is also 100. Does it makes sense to increase PassengerMaxRequestQueueSize to 200 or 300? Probably this depends on free memory. Thoughts? The best answer will be explaining the setting and probably one or two examples, assuming the server process requests for 2-3 seconds. Thanks in advance! 回答1: Why you should limit queuing Any requests that aren't immediately handled by an application

How do I set up a Sinatra app under Apache with Passenger?

情到浓时终转凉″ 提交于 2019-12-18 09:59:34
问题 Let's say I have the simplest single-file Sinatra app. The hello world on their homepage will do. I want to run it under Apache with Phusion Passenger, AKA mod_rails. What directory structure do I need? What do I have to put in the vhost conf file? I understand I need a rackup file. What goes in it and why? 回答1: Basic directory structure: app |-- config.ru # <- rackup file |-- hello-app.rb # <- your application |-- public/ # <- static public files (passenger needs this) `-- tmp/ `-- restart

Rails app randomly crashes with error “Premature end of script headers”

旧城冷巷雨未停 提交于 2019-12-18 04:41:26
问题 I am hosting a Ruby on Rails 2.0.2 application on DreamHost. It is on an Apache 2 server, running on top of Phusion Passenger. The application often returns a 500 error "Rails application failed to start properly", but at random times. It appears to happen when the application is under higher load, though I can't confirm this. It only gets about 2,000 pageviews per day, so I don't think load should really be an issue. The Apache logs correlate these 500 responses with the error: "Premature