...restarted several times. Through the project's history, these all were valid: touch tmp/restart.txt sudo passenger-config restart-app /path/to/app passenger-config restart-app /path/to/app You should not need to...
...ran with the current passenger instance (probably due to no requests to it) and the passenger-config command runs without superuser permissions. This won't stop or break your deploy...
With passenger-status --show=requests you can get a huge JSON showing current information about the running passenger processes. This can be useful if you want to find out what...
...running request or is stuck. You can search for the PID of the process in passenger-status --show=requests: # (this is just a snippet) "last_data_receive_time" : { "local" : "Wed...
...start your Rails application to accept both HTTP and HTTPS in development. gem install passenger Create a self-signed SSL certificate. Store the generated files in config/passenger-standalone-ssl. Create a Passengerfile.json...
...ssl_certificate": "config/passenger-standalone-ssl/server.crt", "ssl_certificate_key": "config/passenger-standalone-ssl/server.key" } If you just want to run Passenger without a config file, use this command to start Passenger: passenger start --ssl --ssl-port...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for development as an Apache module, the installation process is not...
...for the faint of heart. Luckily Passenger also comes as a standalone binary which requires zero configuration. You can Passenger Standalone as a replacement for Webrick or Thin if you...
...capistrano it's possible you get this "error" message: *** [err :: example.com] There are no Phusion Passenger-served applications running whose paths begin with '/var/www/example.com'. *** [err :: example.com] This is just because...
...there were no running passenger process for this application on the server which could be restarted. It's not a real error. The application process will start if the first...
...that supports some-gem as a default gem. You can solve this by setting PassengerPreloadBundler / passenger_preload_bundler to on. We do not enable this by default due to this...
You may encounter problems with passenger starting an application with an updated rails. If you find an error like this in the apache error log...
...for group /var/www/example.com/current#default: An error occured while starting up the preloader. in 'void Passenger::ApplicationPool2::SmartSpawner::handleErrorResponse(Passenger::ApplicationPool2::SmartSpawner::StartupDetails&)' (SmartSpawner.h:455) in 'std::string Passenger::ApplicationPool2::SmartSpawner...
sudo apt-get install ruby1.8-dev sudo gem install passenger sudo passenger-install-apache2-module follow the instructions Manually: configure a vhost in /etc/apache2/sites-available and link it to /etc/apache2/sites-enabled...
...list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory-stats This will output a list like this: ----- Passenger processes ----- PID VMSize Private...
...get a LoadError with the following message when trying to use your application via passenger: no such file to load -- dispatcher Your Passenger version is most likely out of...
Update the gem, then install the apache module again: sudo gem install passenger sudo passenger-install-apache2-module Follow any instructions. Update your /etc/apache2/httpd.conf with the lines given at...
Your current ruby must be Ruby Enterprise. gem install passenger passenger-install-apache2-module Edit your httpd.conf according to the instructions provided at the end of the setup script.
...Apache: sudo service apache2 restart This also works when you previously ran your Passenger using MRI. Just run the setup as described...
You might find that your Passenger ignores all RailsSomething directives in the vhost for your new Rails 3 application. The culprit is a file config.ru which makes Passenger consider your...
This is for you if Passenger gives you the following useless error message. Passenger encountered the following error:\ The application spawner server exited unexpectedly: Unexpected end-of-file detected.
...Rack::ApplicationSpawner::Error Most often this happens because you are missing a gem. Usually Passenger would tell you about that but in some cases it can't. To resolve this...
If you need the debug output of the puppetmaster running with passenger you have to uncomment this setting in the config.ru: #ARGV << "--debug" If you don't know where your...
run ActionController::Dispatcher.new Otherwise, your Rails 2.3 project will not be considered by Passenger 5+ and you will probably see 403 errors returned by nginx or Apache...
I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...
When you are using Apache for development, it still accepts connections from everyone in the same network as you.
Passenger gives you the possibility to define in which environment your app should be started. This has to be added to the VirtualHost configuration for Apache for Rails 2 applications...
You probably need to activate X-Sendfile.
passenger-install-apache2-module --auto
The Out-of-Band Work feature allows one to perform arbitrary long-running work outside the request/response cycle without blocking...
...with capistrano 2.x just replace the touch command: - run "touch #{current_path}/tmp/restart.txt" + run "passenger-config restart-app --ignore-app-not-running #{deploy_to}" If you are using capistrano...
- execute :touch, "#{current_path}/tmp/restart.txt" + execute "passenger-config restart-app --ignore-app-not-running #{deploy_to}" Note: If you using a passenger lower than 5.0.10 you have to use...
...running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby process (e.g. passenger-status) $ sudo gdb -p PID (gdb) call rb_eval_string("$stderr.reopen('/tmp/ruby-debug.' + Process.pid.to_s...
...a live process (sudo required): # First, find out the PID of your Ruby process (e.g. passenger-status) $ sudo gdb -p PID (gdb) generate-core-file # generate a core.PID file for...