FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Adding WEBrick parameters ( binding IP )

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
NoJ



Joined: 16 Aug 2009
Posts: 3

PostPosted: Sun Aug 16, 2009 11:19 am    Post subject: Adding WEBrick parameters ( binding IP ) Reply with quote

Hi Guys,

is there a way of passing additional parameters to WEBrick in a rails project through the IDE?

In the project properties I can only setup port, environment and URL whereas WEBrick lets me specify a binding IP as well.

I'd greatly appreciate any pointers on how to set this in the IDE directly, since up to now I've always hard-coded the binding IP in the source, which is somewhat annoying, especially if I move between different network locations and have to change the hard-coded stuff every time I move.

Cheers
NoJ
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Mon Aug 17, 2009 12:56 pm    Post subject: Adding WEBrick parameters ( binding IP ) Reply with quote

Hi,

Unfortunately this isn't possible in 6.7, but I just committed a change
that allows setting any parameters for the server in Project Properties
- there's now a new "Server Arguments" field that accepts parameters in
the same format as from the command line (e.g. "-b 123.123.123.123" for
the binding IP). This will be available in the next CI build
(http://wiki.netbeans.org/RubyInstallation#section-RubyInstallation-GettingADevelopmentBuild)
and hence also in 6.8 M2 once it is out.

Cheers,
Erno


NoJ wrote:
Quote:
Hi Guys,



is there a way of passing additional parameters to WEBrick in a rails project through the IDE?



In the project properties I can only setup port, environment and URL whereas WEBrick lets me specify a binding IP as well.



I'd greatly appreciate any pointers on how to set this in the IDE directly, since up to now I've always hard-coded the binding IP in the source, which is somewhat annoying, especially if I move between different network locations and have to change the hard-coded stuff every time I move.



Cheers

NoJ











Back to top
NoJ



Joined: 16 Aug 2009
Posts: 3

PostPosted: Mon Aug 17, 2009 2:45 pm    Post subject: Reply with quote

Alright Erno!

Thanks a bunch for patching this and also for sharing the information with me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB