Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to load passenger from apache with rvm and unique gem sets
    primarykey
    data
    text
    <p>I have two websites running on the same server. Both use passenger and rvm. Each website has a unique rvm gemset. The problem I'm running into is how I would configure passenger to start up in apache.</p> <p>Here's my apache passenger configurations:</p> <pre><code>ubuntu@www01:/etc/apache2/mods-enabled$ ls passenger.* passenger.conf passenger.load ubuntu@www01:/etc/apache2/mods-enabled$ cat passenger.conf PassengerRoot /home/ubuntu/.rvm/gems/ruby-1.8.7-p334@snowcrash/gems/passenger-3.0.2 PassengerRuby /home/ubuntu/.rvm/wrappers/ruby-1.8.7-p334@snowcrash/ruby ubuntu@www01:/etc/apache2/mods-enabled$ cat passenger.load LoadModule passenger_module /home/ubuntu/.rvm/gems/ruby-1.8.7-p334@snowcrash/gems/passenger-3.0.2/ext/apache2/mod_passenger.so </code></pre> <p>You can see from above, that I've configured apache to load the passenger module/configurations from the ruby-1.8.7-p334@snowcrash rvm gem set. My problem lies in having an additional gem set for my other website, ruby-1.8.7-p334@pixel-pets. I've thought about installed passenger in the global gem set, but I think it would see issues when it tries loading gems unique to my project specific gem sets.</p> <p>Here are my installed gems for each project:</p> <pre><code>ubuntu@www01:/etc/apache2/mods-enabled$ rvm use 1.8.7@snowcrash Using /home/ubuntu/.rvm/gems/ruby-1.8.7-p334 with gemset snowcrash ubuntu@www01:/etc/apache2/mods-enabled$ gem list -l *** LOCAL GEMS *** actionmailer (2.3.11) actionpack (2.3.11) activerecord (2.3.11) activeresource (2.3.11) activesupport (2.3.11) daemon_controller (0.2.6) fastthread (1.0.7) file-tail (1.0.5) haml (3.0.25) hpricot (0.8.4) mysql (2.8.1) passenger (3.0.2) rack (1.1.2) rails (2.3.11) rake (0.8.7) spruz (0.2.5) ubuntu@www01:/etc/apache2/mods-enabled$ rvm use 1.8.7@pixel-pets Using /home/ubuntu/.rvm/gems/ruby-1.8.7-p334 with gemset pixel-pets ubuntu@www01:/etc/apache2/mods-enabled$ gem list -l *** LOCAL GEMS *** actionmailer (2.3.8) actionpack (2.3.8) activerecord (2.3.8) activeresource (2.3.8) activesupport (2.3.8) backports (1.18.2) border_patrol (0.1.0) bson (1.3.0, 1.1.1) bson_ext (1.3.0, 1.1.1) faker (0.3.1) jnunemaker-validatable (1.8.4) mongo (1.1.1) mongo_mapper (0.8.6) nokogiri (1.4.3.1) plucky (0.3.7) rack (1.1.2) rails (2.3.8) rake (0.8.7) will_paginate (2.3.12) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload