title: How to restart Phusion Passenger + Apache in Production mode on Ubuntu server for Ruby on Rails?
body: <p>I am having Apache + phusion passenger, I have put </p>
  
  <pre><code>RailsEnv production
  </code></pre>
  
  <p>in /etc/apache2/sites-available/default file and have restarted apache but when I am running</p>
  
  <pre><code>rails c
  &gt; Rails.env.production?
  </code></pre>
  
  <p>it gives fales where as for</p>
  
  <pre><code>&gt; Rails.env.development?
  </code></pre>
  
  <p>it gives true. Is there any other way to restart passenger as I do think putting "RailsEnv production" in default is the right way ? btw I am using</p>
  
  <pre><code>sudo service apache2 restart
  </code></pre>
  
  <p>How to start my ruby on rails app in Production mode with passenger + apache ?</p>