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

Rails Testing Handbook

A new ebook on building test-driven Rails apps with RSpec and Cucumber.

At Rendered Text, we have a long history with Ruby on Rails. Checking the blog archive reminds me that we published first posts about working with Rails way back in 2009.

———

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.