passenger

Rails file upload size limit

隐身守侯 提交于 2019-12-18 01:18:27
问题 Does anyone know a good solution to limit the file upload size when running a Rails application with Passenger/mod_rails. The request should immediately be declined, so that the file doesn't get transferred to the server. The solutions I've found so far all describe how to patch Mongrel to implement a limitation, but I have to use passenger with this application. 回答1: Or if you're using nginx with passenger, add in the server block: server { client_max_body_size 100M; } http://wiki.nginx.org

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

懵懂的女人 提交于 2019-12-17 21:36:50
问题 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

403 Forbidden on Rails app w/ Nginx, Passenger

 ̄綄美尐妖づ 提交于 2019-12-17 12:16:49
问题 First off, apologies: I know the 403 Forbidden question is a common one for Rails/Nginx installs, but none of the answers I've read so far have solved it for me. Disclaimer: This is my first time deploying a Rails app somewhere that isn't Heroku. Please be gentle. ;) Situation: I have a Rails app running on an Ubuntu 12.04 server, running Nginx (installed with Passenger). I've deployed my app to my server correctly, but when I attempt to access the site, I receive a 403 Forbidden error.

passenger phusion spawning error with rails app

拥有回忆 提交于 2019-12-14 02:27:48
问题 I'm running a rails 4 app on apache/passenger/ubuntu. The app runs fine when I comment out the config_serve.static.assets line in config/environments/production.rb, like this: # Disable Rails's static asset server (Apache or NGINX will already do this). # config.serve_static_assets = false Although it works, commenting out this line seems to be a bad idea, as I've read that the default value of the config variable is true, and it's supposed to be set to false when you're running an app behind

Bundler::GemfileError on Rails app on Passenger after switching to Capistrano

梦想与她 提交于 2019-12-14 02:22:19
问题 I have a rails app that runs on Phusion Passenger with Apache in production. Everything worked when I used to manually deploy (by SSH-ing in to the server and fetching the latest updates, etc.), but I recently switched to Capistrano to make life easier on my team members. Now, when I try to access the site, Passenger throws the following error: Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (There was an error in your Gemfile, and Bundler cannot

Rails Sub URI 403 Forbidden Errors when Deploying with Passenger for Nginx

。_饼干妹妹 提交于 2019-12-13 22:49:42
问题 I am trying to run Run the Server with the following configuration and am getting an error as shown below user www-data; worker_processes 4; 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; ##

Apache passenger stopped work after upgrade passenger from 5.1.12 to 5.20

柔情痞子 提交于 2019-12-13 16:22:45
问题 After upgrade Apache module Passenger from 5.1.12 to 5.2.0 Apache doesn't start properly and exit with the error # apache2ctl configtest Invalid command 'PassengerResolveSymlinksInDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration After comment string in Apache virtual host # PassengerResolveSymlinksInDocumentRoot on Apache starts but Redmine doesn't work showing listing directoty/files insted of main page(another words can't find index file) OS:

delayed_job - Performs not up to date code?

怎甘沉沦 提交于 2019-12-13 14:37:23
问题 I'm using delayed_job (tried both tobi's and collective_idea's) on site5.com shared hosting, with passenger as rails environment. I managed to make jobs done. However, it seems the plugin ignores any changes in a job class source code after first run. I have restarted the server on every change ( touch tmp/restart.txt ) but it still ignores it. Example: file: lib/xx_job.rb class XxJob def perform Rails.logger.info "XX START" TempTest.delete_all i = 0 10.times { i+=1 TempTest.create(:name =>

passenger meet Library not loaded error : liblzma.5.dylib

邮差的信 提交于 2019-12-13 13:55:41
问题 I am trying to running rails with passenger. I both AWS SDK 1 and 2 gem installed: gem 'aws-sdk-v1' gem 'aws-sdk', '~> 2' when I use AWS sdk to run: s3 = AWS::S3.new I meet error: LoadError: dlopen(/Users/XXXX/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /usr/local/lib/liblzma.5.dylib Referenced from: /Users/XXXX/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle Reason

Nginx + Passenger to serve rails apps in different sub URIs

↘锁芯ラ 提交于 2019-12-13 12:23:15
问题 I'm running a rails app in a Debian server (ip 192.168.1.193) with passenger as a standalone $ cd /home/hector/webapps/first $ passenger start -a 127.0.0.1 -p 3000 And I want to serve this app throw Nginx with reverse proxy in a different sub folder as: http://192.168.1.193/first My nginx.conf server: ... server { listen 80; server_name 127.0.0.1; root /home/hector/webapps/first/public; passenger_base_uri /first/; location /first/ { proxy_pass http://127.0.0.1:3000; proxy_set_header Host