title: Running rails on a Production mode in webrick server
body: <p>In my current ruby on rails project, I am using webrick (default) server for development. I have a separate server for testing the application and I want to set the environment to Products in it. I used the following line to run the server in production mode. </p>
  
  <pre><code>rails s -e production
  </code></pre>
  
  <p>The issue is, it works perfectly if its in the development mode, but in server mode I'm getting following error:</p>
  
  <pre><code>Started GET "/" for 172.20.7.94 at Thu Jun 07 10:35:45 +0530 2012
    Processing by FrontendController#dashboard as HTML
  Rendered frontend/dashboard.html.erb within layouts/frontend (3.0ms)
  Completed 200 OK in 50ms (Views: 22.0ms | ActiveRecord: 0.0ms)
  
  
  Started GET "/assets/frontend-datauri.css" for 172.20.7.94 at Thu Jun 07 10:35:4
  6 +0530 2012
    Processing by Jammit::Controller#package as HTML
    Parameters: {"extension"=&gt;"css", "package"=&gt;"frontend-datauri"}
  Completed 500 Internal Server Error in 190ms
  
  NameError (uninitialized constant POpen4::Open4):
  
  
  Started GET "/assets/frontend.js" for 172.20.7.94 at Thu Jun 07 10:35:46 +0530 2
  012
    Processing by Jammit::Controller#package as
    Parameters: {"extension"=&gt;"js", "package"=&gt;"frontend"}
  Completed 500 Internal Server Error in 105ms
  
  NameError (uninitialized constant POpen4::Open4):
  </code></pre>
  
  <p>I am using Jammit and POpen4 and my rails version is: 3.0.9. Ruby version 1.8.7. I can't currently upgrade the version as several other developers are involved in the project. Can anybody give me a solution for this. </p>
  
  <p>Thanks</p>