Q:

How to RUN rails project on port 80 instead of 3000

I have developer my first rails project and uploaded on server where i run successfully.
Now, my project run on ip:3000 but i want to RUN it on IP means on port 80.
Then how its possible to RUN on it. I have both web server NGINX and APACHE so where I have to set it to RUN.
Any one have a experience or idea. 
Thanks

A:

To run it on port 80, you need to run:
rails server -p 80

If you like to change default (3000) to 80 then you need to do following: 
config/boot.rb:
require 'rails/commands/server'

module Rails
  class Server
    def default_options
      super.merge({Port: 10524})
    end
  end
end

