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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
548240c1431285c235ecf711293a7311?d=identicon&s=25 Yash (Guest)
on 2006-03-13 12:49
We have managed to package our rails application into an exe using the
steps given at:
http://www.erikveen.dds.nl/distributingrubyapplica...

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?

Thanks,
Yash
631d1677786f0725da6ccee46043686e?d=identicon&s=25 Jonathan Viney (Guest)
on 2006-03-13 13:07
(Received via mailing list)
Simple hack is to edit railties/lib/commands/servers/webrick.rb and
change
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
till
it works.

-Jonathan
This topic is locked and can not be replied to.