passenger

Setting up Rails app on Apache with passenger - Rails doesn't seem to load

半世苍凉 提交于 2019-11-28 18:27:30
I am trying to set up Rails on a Ubuntu instance by following along with documentation such as https://help.ubuntu.com/community/RubyOnRails . I am trying to set up the app from the Rails Getting Started page here: http://guides.rubyonrails.org/getting_started.html . What I have done so far: Installation of Ruby/RubyGems/Rails through RVM and GEM (this installed Ruby 1.9.2 and Rails 3.0.7) Installation of the mysql and mysql2 module (latter which didn't work) Creation of rails app (blog app as tutorial is instructing) Sym linking of /home/me/www/blog/public/ from /var/www/blog/ Creation of DB

The website is under heavy load + ROR

久未见 提交于 2019-11-28 18:18:19
We are running a website with ROR on CentOS 6 with 2 web server and 1 database server. Some times it shows message "The website is under heavy load"... Can some plese help you what to check here. We are using Passenger 4.0.21 with Ruby 1.8.7 and Apache 2.2.15. Web server is running with the default settings. Below is some output of passenger-status: # passenger-status Version : 4.0.21 Date : Thu Dec 12 02:02:44 -0500 2013 Instance: 20126 ----------- General information ----------- Max pool size : 6 Processes : 6 Requests in top-level queue : 0 ----------- Application groups ----------- /home

Phusion Passenger Error: You have activated rack 1.2.1, but your Gemfile requires rack 1.2.2

人盡茶涼 提交于 2019-11-28 17:38:23
问题 I'm trying to run a Ruby on Rails app on a Dreamhost shared server. All is well so far except one weird bug I have not been able to unravel. Sometimes when I visit the web app, I get presented with a Phusion Passenger error saying, You have already activated rack 1.2.1, but your Gemfile requires rack 1.2.2. Consider using bundle exec. When I just refresh the page it seems to work, though - no more Phusion Passenger error message. Following other stack overflow threads and a similar Dreamhost

Capistrano to deploy rails application - how to handle long migrations?

梦想的初衷 提交于 2019-11-28 15:55:09
So I am using Capistrano to deploy a rails application to my production server (apache+passenger) and at the moment deployment usually goes along the lines: $cap deploy $cap deploy:migrations It got me wondering, let's say my db:migrations took a long time to execute on the production server (a big refactor of the db schema) - in this case what is best practice with Capistrano? What happens if users are connected to my application at the time of deployment? Should I gracefully send users to a static placeholder page while the database is being updated? Does Capistrano handle this automagically

Rails on Passenger not recognizing RVM

感情迁移 提交于 2019-11-28 15:42:10
问题 I have shifted to ree using rvm by: rvm use ree@mygemset and installed kaminari gem through Gemfile and bundle install. But Phusion passenger seems to still look for the gem in system default directory. It says: Error message: Could not find kaminari-0.10.4 in any of the sources (Bundler::GemNotFound) What do I missing? Rails need any specific configuration to recognize the current ruby version and gemset I am using?? 回答1: You need to instruct Passenger to load RVM and then setup the

Passenger says Bundler:GemNotFound error while the bundle install says it's there

北战南征 提交于 2019-11-28 14:47:08
i get Passenger error on shared hosting Could not find i18n-0.6.0 in any of the sources (Bundler::GemNotFound) but if i run "bundle install" it says everything is ok :( and the contents of the Gemfile are: source 'http://rubygems.org' gem 'rake', '0.8.7' gem 'tzinfo', '0.3.27' gem 'mail', '2.2.16' gem 'arel', '2.0.9' gem 'rack', '1.2.2' gem 'i18n', '0.6.0' gem 'rails', '3.0.5' gem 'mysql2' gem 'paperclip' gem 'devise' gem 'jquery-rails' gem 'acts-as-taggable-on' gem "will_paginate", "~> 3.0.pre2" gem 'tiny_mce' gem "oa-oauth", :require => "omniauth/oauth" gem "acts_as_list" "bundle show i18n"

How to use different rails_env with nginx, passenger and redmine

空扰寡人 提交于 2019-11-28 09:06:38
问题 I need to have redmine running in combination with nginx, phusion passenger and mysql. Because of the project requires several instances of redmine, which should be realized using different rails_env, I tried to set them in the different server vhosts with nginx. Example of one vhost: server { listen xxxx; server_name redmine.xxxxx; root /xxxxx/redmine/public; passenger_enabled on; rails_env production; } Same goes for the other server vhost, but there server_name is matched to the other

Errno::ECONNRESET: Connection reset by peer in Rails using rest-client

一个人想着一个人 提交于 2019-11-28 08:48:20
问题 We have a Ruby on Rails application and this has a "search" functionality (search for some company). From browser user key-in some name and hit search and this search make an rest api call to outside system and get us some search results. We are using " rest-client " (for Ruby on Rails). I noticed this seems to work for few hours and suddenly my search seems to be broken all of a sudden and I can see in my log I get: Errno::ECONNRESET: Connection reset by peer We tried to investigate this

Error while loading shared libraries: 'libpcre.so.0: cannot open shared object file: No such file or directory'

一个人想着一个人 提交于 2019-11-28 04:10:30
I just installed Passenger 3.0.11 and nginx and got this error: Starting nginx: /opt/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory The message means what it says. The nginx executable was compiled to expect the PCRE (Perl-compatible Regular Expression) shared library to be available somewhere on LD_LIBRARY_PATH or specified in /etc/ld.so.conf or whatever equivalent library-locating mechanisms apply to your operating system, and it cannot find the library. You will need to install PCRE - or configure your

Unable to start the Phusion Passenger watchdog?

醉酒当歌 提交于 2019-11-28 04:09:49
I have done a Phusion Passenger setup on Ubuntu 10.04, with Apache2. Whenever I restart the Apache server I got the following error message, and the Rails application is not running. [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'PassengerRoot' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your