How to restart Phusion Passenger + Apache in Production mode on Ubuntu server for Ruby on Rails? How to restart Phusion Passenger + Apache in Production mode on Ubuntu server for Ruby on Rails? apache apache

How to restart Phusion Passenger + Apache in Production mode on Ubuntu server for Ruby on Rails?


just create a restart.txt in tmp dir of your app

e.g.

  touch %RAILS_ROOT%/tmp/restart.txt

look here http://www.modrails.com/documentation/Users%20guide%20Apache.html section 3.3


Your app is probably in production mode already.

By default, rails c loads the app in dvelopment mode.

If you want your console to be launched in production mode, do the following :

RAILS_ENV=production rails c

The console and the web app are two different rails proccess and run independently.

You should check your production.log file to be sure that your app runs in production.


Just for starting app with particular port use below command:

passenger start -a 0.0.0.0 -p 3000 -d -e production