Note that there are some explanatory texts on larger screens.

plurals
  1. POPhusion passenger - what do I actually do after intsalling it?
    primarykey
    data
    text
    <p>I am using Ubuntu 10.04 on linode, and I have installed apache2 and Rails 3.2.2. My application works fine on example.com:3000</p> <p>I have followed the instructions to install Phusion passenger here:</p> <pre><code>http://www.modrails.com/install.html </code></pre> <p>and here:</p> <pre><code>http://wiki.brightbox.co.uk/docs:rvm </code></pre> <p>But I am not sure how to actually run my application on example.com in production mode. What is the command I type in to do this? Do I do 'rails server' or 'rails server -p 80'? What is the command I use?</p> <p>EDIT 1:</p> <p>My Virtualhost file is located in</p> <pre><code>&lt;VirtualHost *:80&gt; ServerAdmin webmaster@example.com ServerName example.com ServerAlias www.example.com DocumentRoot /srv/www/example.com/public_html/ ErrorLog /srv/www/example.com/logs/error.log CustomLog /srv/www/example.com/logs/access.log combined &lt;Directory /srv/www/example.com/public_html/&gt; AllowOverride all Options -Multiviews &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p>One thing I am not sure of is whether I should have the directory as </p> <pre><code>/srv/www/example.com/public_html/ /srv/www/example.com/public/ </code></pre> <p>The linode installation guide stated the first method (http://library.linode.com/web-servers/apache/installation/ubuntu-10.04-lucid), but Passenger states the second. Does it matter as long as it is consistent?</p> <p>My passenger module bits are as follows in /etc/apache2/mods-available:</p> <p>in passenger.conf</p> <pre><code>PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11 PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p125/ruby </code></pre> <p>in passenger.load</p> <pre><code>LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p125/gems/passenger-3.0.11/ext/apache2/mod_passenger.so </code></pre> <p>EDIT 2: I have now added the passenger module bits to the apache configuration file instead of the passenger.conf and passenger.load files. And I set the following for this to work:</p> <p>config/environments/production.rb ... config.assets.compile = true ...</p>
    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