Changeset [69baf696f208daff51ee7e2fec566112b6098bb5] by Mike Bailey

November 27th, 2008 @ 12:18 AM

Phusion Passenger installation and configuration with deprec2

Deprec now makes it easy to get your sites running under Phusion Passenger. One of the main benefits is to simplify your deployment by reducing the number of moving parts. Simplicity is beautiful.

You can upgrade a server previously setup by deprec2 to run your Rails app using nginx/mongrel. Run the following first:

cap deprec:nginx:stop
cap deprec:nginx:deactivate
cap deprec:mongrel:stop
cap deprec:mongrel:deactivate_system

For the time being, to avoid accidentally installing Apache on existing nginx/mongrel installations you need to define a :passenger role for servers that should use passenger. Add this to your deploy.rb:

role :passenger, 'www.example.com'

Then run these (familiar!) commands:

cap deprec:passenger:install
cap deprec:passenger:config_gen
cap deprec:passenger:config
cap deprec:passenger:restart_apache

Your app should now be running under Passenger.

Please send feedback to the mailing list. http://groups.google.com.au/grou...

Committed by Mike Bailey

  • M CHANGELOG
  • M deprec.gemspec
  • M lib/deprec/recipes.rb
  • M lib/deprec/recipes/passenger.rb
  • M lib/deprec/templates/passenger/apache_vhost.erb
  • M lib/deprec/templates/passenger/passenger.erb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<h1>Source available from github</h1>

The Git repository resides at <a href="http://github.com/mbailey">http://github.com/mbailey</a><br/><br/>

Check out the current development trunk with:<br/>
git clone git://github.com/mbailey/deprec.git
<br/>

<h1>Creating a bug report</h1>

When creating a bug report, be sure to include as much relevant information as possible. Post the code sample that causes the problem. Preferably, alter the unit tests and show through either changed or added tests how the expected behavior is not occuring.<br/><br/>

Security vulnerabilities should be reported via an email to mike@bailey.net.au, do not use lighthouse for reporting security vulnerabilities. All content in lighthouse is publicly available as soon as it is posted.<br/><br/>

Then don't get your hopes up. Unless you have a "Code Red, Mission Critical, The World is Coming to an End" kinda bug, you're creating this ticket in the hope that others with the same problem will be able to collaborate with you on solving it. Do not expect that the ticket automatically will see any activity or that others will jump to fix it. Creating a ticket like this is mostly to help yourself start on the path of fixing the problem and for others to sign on to with a "I'm having this problem too".<br/><br/>

(Wording copied from <a href="http://rails.lighthouseapp.com/projects/8994-ruby-on-rails">Rails lighthouse page</a>)