passenger

Rack Error with DreamHost, Passenger, and Rails 3.0.0.rc

℡╲_俬逩灬. 提交于 2019-12-12 08:54:42
问题 Background: I have viewed this question as well as this one - sadly, to no avail. Error Message (Passenger): You have already activated rack 1.1.0, but your Gemfile requires rack 1.2.1. Consider using bundle exec. my Gemfile: source 'http://rubygems.org' gem 'rails', '3.0.0.rc' gem 'nifty-generators' gem 'nokogiri' group :after_initialize do gem 'feedzirra' end my Gemfile.lock has this line: rack (1.2.1) my environment.rb has this line at the top: ENV['GEM_PATH'] = File.expand_path('~/.gems')

How to limit Phusion Passenger memory usage?

送分小仙女□ 提交于 2019-12-12 08:25:48
问题 Is there a way to limit the amount of memory Phusion Passenger uses when serving up your app? My host comes by and kills the process after I get a bunch of traffic and so I end up serving up blank pages. Is there anything I can do to say "hey don't use any more than 100Mb and only spawn 3 processes no matter how overloaded the site is" 回答1: There is no way to limit the memory usage explicitly (say use <= 100MiB). But what you can do is limit the number of processes by setting

How to remove Passenger standalone?

旧街凉风 提交于 2019-12-12 05:47:58
问题 I'm building a new laptop for development and had installed the following over the last few days: Ubuntu 11.04 Apache2 RVM Ruby 1.9.2 under rvm Ruby 1.8.7 under rvm Passenger3 at 1.9.2@global Passenger module for Apache using Ruby 1.9.2 Passenger3 at 1.8.7@global I was about to set up some reverse proxy to Passenger standalone using Ruby 1.8.7 when I accidentally typed in Passenger start in a terminal window which did not point to 1.8.7@global. The next thing I knew Passenger decided to

Passenger is listing all files instead of running my Rails application

情到浓时终转凉″ 提交于 2019-12-12 05:47:55
问题 I'm trying to add the Rails application to the a directory of another application and for some reason the rails application is not rendering Here's a link to my application Here's VHOST <VirtualHost 184.106.111.142:80> ServerAdmin joe@joe.com ServerName transprintusa.com/design # ServerAlias DocumentRoot /srv/www/www.transprintusa.com/design/design.transprintusa.com/current/public ErrorLog /srv/www/design.transprintusa.com/logs/error.log RailsEnv production <Directory "/srv/www/www

PhusionPassenger : Ruby (Rack) application could not be started

主宰稳场 提交于 2019-12-12 03:33:49
问题 I am new to rails developer,I have deploy rails application on my server. But now it is not started and giving error on browser as below : Error message: There was an error while trying to write to Gemfile.lock. It is likely that you need to allow write permissions for the file at path: /var/www/PCMI/zil/Gemfile.lock (Bundler::InstallError) Exception class: PhusionPassenger::UnknownError Application root: /var/www/PCMI/zil Backtrace: 0 /usr/local/rvm/gems/ruby-1.9.3-p125@domain_name/gems

JRuby deployment options that support multiple versions of JRuby

*爱你&永不变心* 提交于 2019-12-12 02:49:58
问题 I'm looking for a way to deploy multiple JRuby apps on a single server, the apps are in different stages and hence use different versions of JRuby, in the long term it would be pretty complicated to try and sync all of the applications with all of the application servers, so I'm looking something akin to Phusion Passenger 4 in the Javaland. Apparently Passenger allows something like this, but there's no documentation available how such a setup should work. Torquebox doesn't mention this use

fusion passenger issue with json gem when running on nginx

戏子无情 提交于 2019-12-12 02:02:52
问题 I have spent the better half of today trying to resolve an issue where fusion passenger fails to process the request due to some segment fault issue within the json gem. There have been similar posts regarding this issue, however none of the solutions have appeared to work. I have tried to clear the gems and re bundle, e.g. gemset empty, bundle install. The interesting this about this is running rails server is ok, and running fusion-passenger stand alone is fine too, only when running under

RackEnv not respected when using route helpers from model

落花浮王杯 提交于 2019-12-12 01:35:26
问题 Running Rails 3.2.13 on Passenger for Apache. My vhost: <VirtualHost *:80> ServerName server DocumentRoot /srv/http <Directory /> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> RackEnv test RackBaseURI /rails_app <Directory /srv/http/rails_app> Options -MultiViews </Directory> </VirtualHost> Works great. Only problem is that I'm using the route url helpers in a model, like so: # egg.rb def to_exhibit return { :edit_path => Rails

phusion passenger standalone server not working

╄→尐↘猪︶ㄣ 提交于 2019-12-12 01:34:01
问题 If I run phusion using: rvmsudo passenger start -p 80 [EDIT] the output is >> rvmsudo passenger start -p 80 =============== Phusion Passenger Standalone web server started =============== PID file: /home/user/site/rails-webpage/tmp/pids/passenger.80.pid Log file: /home/user/site/rails-webpage/log/passenger.80.log Environment: development Accessible via: http://0.0.0.0/ You can stop Phusion Passenger Standalone by pressing Ctrl-C. ===============================================================

Rails, Passenger, Nginx, I get “403 Forbidden” but why?

给你一囗甜甜゛ 提交于 2019-12-12 01:22:54
问题 I am trying to run my app through Passenger-Nginx on port 5000 On my browser I get '403 Forbidden' and on my nginx error log: 2016/07/12 17:52:12 [error] 28924#0: *1 directory index of "/var/www/cava/public/" is forbidden, client: Y.Y.Y.Y, server: cava, request: "GET / HTTP/1.1", host: "X.X.X.X:5000" On passenger root I use what I get from passenger-config --root but whithout the rvm. If I use the passenger root with rvm loaded I get passenger error, but is what I did here right? For