Forum: Ruby on Rails How to run rails app exe on port other than 3000?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Yash (Guest)
on 2006-03-13 13:49
We have managed to package our rails application into an exe using the
steps given at:

When we start the exe, it starts on port 3000. But when we will be
installing it at the clients' site, this may not work as some other
rails application may be running on that port.
What can we do to configure the port on which the application is
supposed to run?

Jonathan V. (Guest)
on 2006-03-13 14:07
(Received via mailing list)
Simple hack is to edit railties/lib/commands/servers/webrick.rb and
the default.

A better way is to use ARGV, you can probably do it by passing an
appropriate command line parameter somewhere. Just play around with it
it works.

This topic is locked and can not be replied to.