passenger

Incomplete response received from application

▼魔方 西西 提交于 2019-12-02 12:31:56
I want to deploy my rails app using phusion passenger in test environment DB. I have configured the following lines in my database.yml test: adapter: mysql2 database: testdb username: testuser password: pass host: x.x.x.x when I start the passenger "passenger start -a x.x.x.x -p 3000 -d -e test" it started working. but when I open the application URL in browser it should me an error like "Incomplete response received from application". I don't know what will be the problem? I have searched well in SO. only they have provide solution for production mode. but I want to run the application in

Phusion Passenger + Heroku + Cloudfront: CORS Configuration

故事扮演 提交于 2019-12-02 10:30:33
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 for support! guapolo I tried using the rack-cors gem but it took me a while to notice that although

libmysqlclient.so.15: cannot open shared object file: No such file or directory

隐身守侯 提交于 2019-12-02 10:00:58
All Rails applications are working just fine until today. I am not sure if someone changes the settings on this machine. However does anyone know what could be the fix for this? Details: Centos 5.5 Apache Passenger Rails 3.0.x MySql 5.0.77 Error details: Lee Okay this saves the day. wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 chmod 755 /usr/lib64/libmysqlclient.so.15 ldconfig You can try to find the right package by the following command: $ sudo yum whatprovides libmysqlclient.so.15 libmysqlclient15-5.0.95-5.w5.i386

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

℡╲_俬逩灬. 提交于 2019-12-02 09:54:32
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 the gem is actually not missing. Since I could not resolve this issue, I keep including the rails gem in

Multiple rails apps nginx passenger config

一笑奈何 提交于 2019-12-02 08:28:00
问题 I used this guide to setup server. Here are my configs: nginx/nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # SSL Settings ## ssl_protocols

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

假如想象 提交于 2019-12-02 08:17:45
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 there is no file 2.0.0-p247. I am now attempting to start passenger. I had version 4.0.23 enterprise

VPS apache config - Invalid command 'PassengerDefaultRuby' after adding latest passenger gem

浪子不回头ぞ 提交于 2019-12-02 07:53:58
问题 used to have this list of rubies in my vps: ruby-1.9.2-p320 [ i686 ] =* ruby-1.9.3-p194 [ i686 ] ruby-1.9.3-p374 [ i686 ] ruby-1.9.3-p392 [ i686 ] today I installed a new app on this vps on ruby 2.0 , so I added 2.0 to rvm : ruby-1.9.2-p320 [ i686 ] ruby-1.9.3-p194 [ i686 ] ruby-1.9.3-p374 [ i686 ] ruby-1.9.3-p392 [ i686 ] =* ruby-2.0.0-p247 [ i686 ] installed passenger and passenger-apache-module , instructions says to add these lines: LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0

no such file to load — bundler/setup in Rails 3.2 with Passenger

妖精的绣舞 提交于 2019-12-02 06:24:31
问题 I'm running a vserver on apache2 with passenger. Using RVM for ruby. Ruby Version -> 1.9.3p194 Rails Version -> 3.2.3 Set up by Apache Virtual Host Configuration ... Now, when I'm entering the url into my browser, a passenger error page shows up: no such file to load -- bundler/setup I have no idea what to do now. Can someone help me? 回答1: Create a .htaccess in your root dir and use it to specify the GEM_PATH. For example: SetEnv GEM_PATH /home/dinduks/.rvm/gems/ruby-1.9.3-p0 回答2: looks like

Multiple rails apps nginx passenger config

微笑、不失礼 提交于 2019-12-02 06:14:37
I used this guide to setup server. Here are my configs: nginx/nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/nginx/mime.types; default_type application/octet-stream; ## # SSL Settings ## ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers on; ## # Logging

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

跟風遠走 提交于 2019-12-02 06:03:07
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 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/documentation/Users%20guide%20Apache.html#PassengerUserSwitching More specific info here regarding how these