passenger

Ruby 1.9.1-p234, Passenger 2.2.5, Rails 2.3-stable closed stream on POST request

最后都变了- 提交于 2019-12-09 15:59:01
问题 I've setup Ruby 1.9.1 (p234) on a Ubuntu server. I'm trying to deploy a Rails app which vendors Rails 2.3-stable on Apache 2.2/Passenger 2.2.5. GET requests work fine, POST requests break immediately with the following log entry: Processing UsersController#new (for 80.203.77.44 at 2009-10-24 20:54:55) [GET] Parameters: {"controller"=>"users", "action"=>"new"} Rendering template within layouts/application Rendering users/new Completed in 23ms (View: 20, DB: 0) | 200 OK [ http://myapp/user/new]

Running Rails applications with Passenger alongside PHP applications

断了今生、忘了曾经 提交于 2019-12-09 12:54:17
问题 I'm setting a server where I will need to run Ruby On Rails 3 applications along with some PHP websites. The server is a CentOS 5.8 machine running Apache 2.4.3. The server is for testing and PRE-production, so performance is not an issue. I'm using Phusion Passenger for the Rails apps, and I've created a bunch of virtual-hosts (with associated folders and DB accounts). Then, I'm planning to use other v-hosts for PHP. Is it possible? How should I proceed? Thank you very much details: httpd

Can't install passenger 3 on Snow Leopard (with RVM and ruby 1.9.2)

梦想的初衷 提交于 2019-12-09 11:34:47
问题 I've been trying to install passenger with no success yet. I've installed the gem, but when I run passenger-install-apache2-module it tells me This installer must be able to write to the following directory: /Users/myname/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0 But it can't do that, because you're running the installer as myname. Please re-run this installer as root. but if I do sudo passenger-install-apache2-module I get /Users/myname/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb

C compiler gcc not found while installing passenger and nginx

非 Y 不嫁゛ 提交于 2019-12-09 10:45:30
问题 I'm trying to install Passenger and Nginx on my VPS. I followed these instructions and replaced all links of all sources to the current version. But when i ran the Phusion Passenger installer for Nginx, something with gcc compiler went wrong: Compiling and installing Nginx... # sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-http_gzip_static_module --with-cc-opt='-Wno-error' --add-module='/usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.17/ext/nginx' checking for OS +

Passenger Error: The application spawner server exited unexpectedly: Unexpected end-of-file detected

落花浮王杯 提交于 2019-12-09 09:13:43
问题 This was working just the other day, but I just updated my code to the review server which runs Passenger 2.2.4 and my 2.3.4 rails app now can't boot on that box. Passenger reports: Passenger encountered the following error: The application spawner server exited unexpectedly: Unexpected end-of-file detected. Exception class: PhusionPassenger::Railz::ApplicationSpawner::Error Backtrace: # File Line Location 0 /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application

Missing Rails gem error, but its installed!

烂漫一生 提交于 2019-12-09 06:03:26
So I'm new to rails and am actually following a video tutorial from Lynda.com in order to learn it. I didn't follow the steps to install on the video because I heard of RVM and its been great so far with getting everything setup. But I'm still early on in the video and can't get passed something really simple... so I'm hoping someone can help me out. Heres some background: I have RVM installed and created 1.8.7@rails2.3.8. I was able to install both ruby and rails, and everything here is fine. I even setup a global gemset for mysql and passenger. I'm using passenger instead of WEBrick (which

Rails App Error: Premature end of script headers

感情迁移 提交于 2019-12-08 17:40:13
问题 My setup: Ubuntu 12.04 LTS, Apache, Phusion Passenger, latest Ruby and Rails. When I visit my website, I get a 500 Internal Server Error. Error Logfiles: Premature end of script headers Does somebody know how to solve that problem? 回答1: If you have a database configured for production in your config/database.yml that doesn't exist on the server as you mentioned in the comments, that could be the source of your issue since it's failing to establish a database connection. Remove that connection

Capistrano deploy:cold doesn't work

核能气质少年 提交于 2019-12-08 14:48:41
问题 I have two Questions. One small and one greater problem. Why i have to enter the passphrase 10 times my running cap:cold After i tryed to setup an capistrano via teachmetocode-tuorial and with some helps of stackoverflow. I sat down, with many tutorials of deploying capistrano and write my own new Version of the deploy.rb Our gem env output looks so RubyGems Environment: RUBYGEMS VERSION: 1.8.15 RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [x86_64-linux] INSTALLATION DIRECTORY: /home/user/

Rails 3.1: Intermittent 500 Internal Server Error when serving uncompressed assets

安稳与你 提交于 2019-12-08 12:04:26
问题 I'm upgrading an app to Rails 3.1. Quote often, Firebug will complain about some assets. Here are some errors pasted from Firebug: "NetworkError: 500 Internal Server Error - http://unstilted.dev/assets/jquery-ui.js?body=1" jquery...?body=1 "NetworkError: 500 Internal Server Error - http://unstilted.dev/assets/admin/pages/file_attachments.js" file_a...ents.js "NetworkError: 500 Internal Server Error - http://unstilted.dev/assets/admin/file_attachments/sortable.js?body=1" sortab...?body=1

Can't get Passenger to start Rails 4 app in staging environment

笑着哭i 提交于 2019-12-08 10:00:27
问题 My app is running on this stack: Ubuntu 12.04.3 nginx 1.4.4 passenger 4.0.33 rvm 1.25.12 ruby 2.1.0p0 nginx.conf file: http { passenger_root /usr/local/rvm/gems/ruby-2.1.0/gems/passenger-4.0.33; passenger_ruby /usr/local/rvm/wrappers/ruby-2.1.0/ruby; server { listen 80; server_name redacted; root /home/deploy/apps/redacted/current/public; passenger_enabled on; passenger_app_env staging; } } When I try to start the app, it fails because it starts in the production environment and I have no