Multiple Instances of Server?

10 views
Skip to first unread message

pete

unread,
Dec 19, 2007, 3:01:44 PM12/19/07
to Ruby on Rails: Talk
Hello-

Is it not possible to run multiple instances of 'ruby script/server'
for different applications?

I have 2 apps, say App1 and App2 and I would like to be able to host
these locally at the same time using ruby script/server for each. Is
this not possible? Is it a bad idea?

This is on Red Hat Linux.

Thanks!

Jim Lindley

unread,
Dec 19, 2007, 3:04:56 PM12/19/07
to rubyonra...@googlegroups.com
>
> I have 2 apps, say App1 and App2 and I would like to be able to host
> these locally at the same time using ruby script/server for each. Is
> this not possible? Is it a bad idea?
>

Specify a different port (-p switch for script/server), it defaults to
3000 but only one server can attach to any given port.

pete

unread,
Dec 19, 2007, 3:11:19 PM12/19/07
to Ruby on Rails: Talk
Perfect, thanks!

Rosy Catz

unread,
Sep 23, 2013, 8:10:42 AM9/23/13
to rubyonra...@googlegroups.com
Hi,

I'm using ruby 1.8.7 with rails app(2.3.11) and deployed the app with
apache server. My app performance is too slow so i configured the app
with new relic and could see the ruby has 2 instances. One is for
ruby(nobody) =201 MB and one more for ruby(root)= 73.9 MB. I killed the
processes but still can see the same. Please help me and say why 2
instances are running for ruby?.

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages