Questions tagged [passenger]

Passenger is an application server for Rack, Node.js, and WSGI applications that can be run standalone or as an Apache or Nginx module.

Phusion Passenger is an application server for Rack, Node.js, and WSGI applications that can be run standalone or as an Apache or Nginx module.

3603 questions
21
votes
9 answers

Sidekiq worker not getting triggered

I am using Sidekiq for my background jobs: I have a worker app/workers/data_import_worker.rb class DataImportWorker include Sidekiq::Worker sidekiq_options retry: false def perform(job_id,file_name) begin #Some logic in it ..... end …
AnkitG
  • 6,438
  • 7
  • 44
  • 72
20
votes
4 answers

modrails - rogue ruby processes consuming 100% cpu

I'm having ruby instances from mod_rails go "rogue" -- these processes are no longer listed in passenger-status and utilize 100% cpu. Other than installing god/monit to kill the instance, can anyone give me some advice on how to prevent this? I…
lamplighter
  • 303
  • 3
  • 7
20
votes
8 answers

403 Forbidden on Rails app w/ Nginx, Passenger

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.…
cole
  • 310
  • 2
  • 3
  • 9
19
votes
4 answers

Setting the Ruby on Rails application environment using Capistrano on Phusion Passenger

I have 2 environments, production and staging, and I am using Capistrano with capistrano-ext gem. When I deploy to staging using Capistrano and restart passenger, I would like the deployed application to run in staging however it runs in the default…
dangerousdave
  • 6,331
  • 8
  • 45
  • 62
19
votes
3 answers

Is a system-wide install of RVM a bad idea?

I'm confused about whether, on a server, you're supposed to install RVM as a regular user or do a system-wide installation, and, if the latter, how you're supposed to do things like bundle install without using sudo. Is there any definite set of…
dan
  • 43,914
  • 47
  • 153
  • 254
19
votes
4 answers

Phusion passenger-status: what value for passenger_instance_registry_dir?

I've done a new install of nginx 1.6.3 and passenger 5.0.15 on Ubuntu 14.04 from source in order to add tracing components from AppNeta for my ROR 4.2 app on one of my servers. Nginx and passenger are running and serving pages. I am getting the…
Peter Degen-Portnoy
  • 786
  • 1
  • 8
  • 16
19
votes
2 answers

Nginx/Passenger/Rails, where to set RAILS_ENV?

I've deployed my site to its testing location, but I'm not sure where I set what the RAILS_ENV should be for this server. Where should I look?
Josh M.
  • 26,437
  • 24
  • 119
  • 200
19
votes
1 answer

sinatra config.ru: what is the configure block for?

I'm using Sinatra with Apache and Phusion-Passenger with "classic" style: # config.ru require 'sinatra' configure do .... end require './app' run Sinatra::Application I want to define some things. What is the difference between defining it…
Markus
  • 5,667
  • 4
  • 48
  • 64
19
votes
6 answers

Rails app moved to production server gives "dump format error for symbol" error

I've just moved my rails app from the development to deployment server. I've installed passenger, but I wanted to try with rails s to make sure all was running fine (this is the first time I develop and deploy a rails application). Specs are: Ruby…
user1543863
18
votes
7 answers

Passenger installation with nginx fails

I'm running an ubuntu 9.10 server on an amd-64 platform. Everything's pretty much standard, and I've got Sinatra 0.94 running on a ruby 1.8 installation. I want to install passenger in order to easily configure ssl. The problem is, it fails to…
mmr
  • 14,781
  • 29
  • 95
  • 145
18
votes
4 answers

"413 Request Entity Too Large" Error Rails 3.2 Passenger Phusion

I have a rails app using Rails 3.2.3, Ruby 1.9.3, and Phusion Passenger with the Nginx module. App users need to upload large files. I added the directive client_max_body_size 500M; to the location block in the nginx.conf (below) and stopped and…
user437969
  • 579
  • 2
  • 11
  • 25
17
votes
1 answer

Phusion Passenger process stuck on (forking...) Rails

Today I updated to the newest updated package for Nginx and Passenger. After the update, my app now has a (forking...) process that wasn't there before and doesn't seem to go away. Yet it is taking up memory and sudo /usr/sbin/passenger-memory-stats…
Sam H.
  • 338
  • 3
  • 7
17
votes
5 answers

How do I configure `Access-Control-Allow-Origin` with rails, nginx and passenger?

I cannot get Access-Control-Allow-Origin to show up in Chrome - my ultimate goal is to configure CORS for fonts with Rails, so it works in production with CloudFront. For now though, I just want to get it to work in development. I can see the header…
user664833
  • 18,397
  • 19
  • 91
  • 140
17
votes
6 answers

Recurring tasks in a Ruby On Rails application: Cron or other?

I am currently writing an application that pulls new information from RSS sources and has to update those RSS sources in a certain frequency. Currently I am pulling only when the user requests a feed but I want to change that behavior to automatic…
z3cko
  • 3,054
  • 8
  • 40
  • 59
17
votes
2 answers

why did gitlab 6 switch back to unicorn?

Gitlab 6.0 was released yesterday. I am curious to know why they switched to Unicorn from Puma. Versions prior to 5 were using Unicorn. I thought switch to Puma was for the better. Is there a technical reason for this switch?
Litmus
  • 10,558
  • 6
  • 29
  • 44