config webrick start port

hi all:

when i start webrick in netbeans and under ubuntu, it’s default port is 3000

but now i want to change it to 4000 when i start webrick in netbeans…hmmm…, i know i can do it at terminal : ruby script/server -p 4000, but i usually do puts some param to debug , so that can see results at netbeans console…

can anyone help me? thanks

Right click (control-click on Mac) on the main project node in
Projects window.
Select "Properties" from popup list (last item).
Select "Rails" from catagories list on Project Properties form.
Set Server Port Number to value of your choosing.
OK to save.
Restart Server to use new port.

haha…that’s great …thank u …