passenger

uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)

依然范特西╮ 提交于 2019-12-20 16:14:47
问题 i'm on rails 4 with passenger. everything was working great until i did a bundle just now. now i'm hitting the following error: Web application could not be started uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError) /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/rails-2ac97df55230/railties/lib/rails/application/configuration.rb:144:in `const_get' /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/rails-2ac97df55230/railties

uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)

杀马特。学长 韩版系。学妹 提交于 2019-12-20 16:14:05
问题 i'm on rails 4 with passenger. everything was working great until i did a bundle just now. now i'm hitting the following error: Web application could not be started uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError) /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/rails-2ac97df55230/railties/lib/rails/application/configuration.rb:144:in `const_get' /u/sf/ytl/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/rails-2ac97df55230/railties

Passenger: cannot load such file rubygems/builder

社会主义新天地 提交于 2019-12-20 10:24:23
问题 I was trying to install passenger with Apache2 and ruby 2.0, and I had this line of error when I am doing: passenger-install-apache2-module Error: -------------------------------------------- Compiling and installing Apache 2 module... cd /usr/local/lib/ruby/gems/2.0.0/gems/passenger-3.0.19 /usr/local/bin/ruby /usr/local/bin/rake apache2:clean apache2 RELEASE=yes # /usr/local/bin/ruby /usr/local/bin/rake apache2:clean apache2 RELEASE=yes rake aborted! cannot load such file -- rubygems/builder

Passenger does not recognize locally installed gem, works with packed gems

本秂侑毒 提交于 2019-12-20 07:37:16
问题 This is a production server. I have Passenger installed and it works properly for the most part. However, I always have to pack the gems with the projects. If I don't, I get this error message: Missing the Rails 2.3.8 gem. Please `gem install -v=2.3.8 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. gem list --local returns rails 2.3.8 as well as 2.3.5 so

Phusion Passenger + Heroku + Cloudfront: CORS Configuration

为君一笑 提交于 2019-12-20 06:33:02
问题 I have fonts served from cdn.myapp.com using Cloudfront. I was using the font_assets gem which helped me sending CORS headers to have my fonts accepted in Firefox (among others). I recently moved my webserver to Phusion Passenger, I'm very happy with this (speed!). But since my migration, I can't send these headers and I suspect nginx to be responsible for it. How can I send custom headers with Phusion on Heroku? Can I access nginx config from heroku, or is there another config to set? Thanks

How to convert Apache's `AllowOverride all` to nginx

有些话、适合烂在心里 提交于 2019-12-20 06:15:22
问题 I have an Apache2 & Passenger site for Rails app, that uses following configuration: <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/site/public <Directory /var/www/site/public> AllowOverride all Options -MultiViews </Directory> </VirtualHost> Is there an equivalent for nginx & Passenger site? Currently nginx responds to all requests in form {ID}/action with 404 . Here's the relevant part of nginx conf: location / { passenger_app_root /var/www/site; passenger_document_root /var

ERROR: Missing RVM environment file After Doing rvm upgrade command - Passenger 4.0.23

∥☆過路亽.° 提交于 2019-12-20 06:08:11
问题 I was running ruby 2.0.0-p247 on my Mac Mini Server (Mavericks 10.9.1). I read that there was a security vulnerability so I decided to upgrade to use the latest Ruby patch 2.0.0-p353. I did the following commands: gem update --system (RubyGems 2.1.11) rvm get stable (RVM 1.25.0) rvm upgrade 2.0.0-p247 2.0.0-p353 (which should have moved my gemsets) There is nothing in my system that I can find that references 2.0.0-p247 in rvm which is what I expected. When I go to ~/myuser/.rvm/environments

Not able to upload in a passenger app behing apache

老子叫甜甜 提交于 2019-12-20 04:31:11
问题 Am not able to upload a 8.4 MB file, in a passenger app behind apache. Transferring the same file via scp took 4.1 minutes. Error backtrace: [ pid=10222 file=ext/apache2/Hooks.cpp:727 time=2010-05-18 07:13:14.842 ]: Unexpected error in mod_passenger: An error occurred while receiving HTTP upload data: Connection reset by peer (104) Backtrace: in 'boost::shared_ptr Hooks::receiveRequestBody(request_rec*, const char*)' (Hooks.cpp: 1084) in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:459

New Rails installation - no such file to load — phusion_passenger/alalytics_logger

≡放荡痞女 提交于 2019-12-20 04:22:34
问题 I just installed Ruby on Rails on my server and keep getting the following error when I view the page. Error Message: No such file to load -- phusion_pasenger/analytics_logger Current Installation: Ubuntu 10.04 64 Apache 2 RVM 1.5.2 Ruby 1.8.7 EE Rails 3.0.5 Passenger 3 回答1: Mongus Pong's answer came in while I was typing the same thing about permissions. Check into the PassengerUser and PassengerUserSwitching directives to setup the appropriate users and permissions. http://www.modrails.com

Phusion Passenger Nginx module installer v3.0.17 issue on Debian 6.0.5 amd64 due to broken package

可紊 提交于 2019-12-19 11:44:14
问题 I tried default Passenger Nginx installation steps, but it couldn't succeed, I am newbie to linux and ruby on rails , so guys please help me if i am doing wrong or something is wrong, upto my knowledge some package is broken in debian 6.0.5 or passenger nginx module. I am using REE ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02 from http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise_1.8.7-2012.02_amd64