Darko Fabijan wrote this on September 14, 2009

Running a Rails app on Passenger on a different port

We spent a lot of time doing pair sysadmining today. Yes, that’s the new thing you should be practicing. Here’s one tip, hopefully a timesaver for someone. Suppose you want to run your Rails app in staging environment on the same machine, but on different port. There are just two things you need to do apart from the usual. First you need to tell Apache to listen on the particular port that you want to use /etc/apache2/ports.conf:

Listen 1234

and then of course in the vhost file of your Rails app:

<VirtualHost *:1234>
comments powered by Disqus

About Darko Fabijan

Rendered Text co-founder. Enjoys breaking new ground and exploring tools and ideas that make lives of developers interesting and productive. Nowadays has less time to write code but has great pleasure in discussing it with the team. He spends his free time cooking, hiking and indoor gardening.

Suggested Reads

Inject is a fundamental building block

Inject is one of the fundamental, and most versatile constructs available in functional languages. It can be used to implement map, select, max, all? and a bunch of other iteration related methods. Unfortunately, many programmers are not aware of its awesome powers. This article is here to improve this fact.


Rendered Text is a software company. For questions regarding Semaphore, please visit semaphoreci.com. Otherwise, feel free to get in touch any time by sending us an email.

Rendered Text
Svetozara Miletica 10
21000 Novi Sad