Help shut down webbrick on mac?

Hello,

I just installed radrails and it will not run the webbrick because a
version is already running on my mac.
I do not know how to shut down the mac version.

Thanks

Regards,

Frank R.
[email protected]

I don’t know what radrails is but if you can find the terminal where
webrick is running you can issue Control+C to stop it.

Alternatively, you can launch a second instance of webrick using a
different port, like this:

cd folder containing your project
script/server -p3001 (where 3001 is the port number) the default
port is 3000 and you could have chosen any value you want for the
port number (bearing potential conflicts in mind).

bruce

Thanks

radrails is a special eclipse environment for rails.
http://www.radrails.org

Frank
----- Original Message -----
From: “Bruce B.” [email protected]
To: [email protected]
Sent: Thursday, December 08, 2005 10:17 AM
Subject: Re: [Rails] Help shut down webbrick on mac?

Frank R. wrote:

I just installed radrails and it will not run the webbrick because a
version is already running on my mac.
I do not know how to shut down the mac version.

Hi - I am impressed with the progress RadRails has been making recently
(from looking at it on Windows XP), so when I saw your post I thought I
would see how it looks on OS X.

I didn’t have a WEBrick server running before starting RadRails. I made
a test project and started the server for it, and that worked fine. I
then tried to shut down the server, and RadRails hung (spinning
beachball cursor). I killed RadRails using the Force Quit… item in
the System Menu, but WEBrick was still running - in a Terminal window I
could see that it was there using

$ ps -ax

or, more effectively

$ ps -ax | grep webrick

If you have the same problem, this will show you something like

1709 ?? R 0:16:39 /usr/bin/ruby script/server webrick --port=3000
–environment=development

The number at the left (1709 in my example) is the process id (pid).

You can then kill the webrick process using the kill command with the
relevant pid:

$ kill 1709

If you do ps -ax again, you shouldn’t see it any more.
If this doesn’t work, try again with:

$ kill -9 1709

But until this problem is sorted out, RadRails won’t be much use on OS
X. (You have got Locomotive and TextMate, haven’t you?)

Looking at the RadRails Trac issue manager, I see that there is a ticket
recording this defect

http://dev.radrails.org/trac/ticket/413

which was raised a week ago, scheduled for fixing in release 0.5.1,
closed as unreproduceabe but then reopened. I’m copying this to Kyle at
radrails (the defect is assigned to him).

regards

Justin

Frank R. wrote:

Thanks Justin,

I’m downloading radrails 5.1 as I write this.
I did download locamotive, but have a trial of textmate.
Not sure I want to spend the 50 bugs for textmate.

update…
I just tried to stop the server in radrails and it still is hanging.

Sorry, I should have been clearer - it was 0.5.1 that I tried, and found
the problem with. The bug was scheduled for fixing in 0.5.1, but Matt
Kyle couldn’t reproduce it, and closed it. Then it was opened again, I
think just after 0.5.1 had been released.

TextMate is a much better editor than the editor in RadRails.

regards

Justin

I have not been able to reproduce this problem. I run and develop on
the mac and have not had any server startup/shutdown issues. I
believe the problem might lie with the JVM you are using and how it
deals with external processes like the server.

So, what JVM, OSX version etc are you using?

-Kyle

Thanks Justin,

I’m downloading radrails 5.1 as I write this.
I did download locamotive, but have a trial of textmate.
Not sure I want to spend the 50 bugs for textmate.

update…
I just tried to stop the server in radrails and it still is hanging.

Regards,
Frank
On Dec 8, 2005, at 1:23 PM, Justin F. wrote:

I didn’t have a WEBrick server running before starting RadRails. I
$ ps -ax | grep webrick

Looking at the RadRails Trac issue manager, I see that there is a
Justin


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

Regards,

Frank R.
[email protected]

Kyle S. wrote:

I have not been able to reproduce this problem. I run and develop on
the mac and have not had any server startup/shutdown issues. I
believe the problem might lie with the JVM you are using and how it
deals with external processes like the server.

So, what JVM, OSX version etc are you using?

The normal Java on Tiger:

java version “1.4.2_09”
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot™ Client VM (build 1.4.2-54, mixed mode)

System Version: Mac OS X 10.4.3 (8F46)
Kernel Version: Darwin 8.3.0

I used Tony Arnold’s downloadable package to fix Ruby and install Gems
and Rails on that one, if I remember right.

Before replying, I thought I’d try it on my Mac Mini - same OS and JVM,
but with Ruby and Gems built from source, and in /usr/local/bin, which
is at the front of my PATH.

On that machine, with a newly-downloaded RadRails 0.5.1, I can’t even
create a Rails project. For a project without a WEBrick server it fails
silently - there’s nothing in the project directory apart from the
.project file. For a project with a WEBrick server it puts up a dialog
saying that there was no script/server file.

regards

Justin