OSX Run configurations on port80

I can configure rubymine to run the rails server on port 80 this fails on a mac because I need to run the command as sudo since port 80 usage is restricted. Any suggestions on how I can do this?

I use port 80 because i test understand specific subdomains which actually impact functionality so localhost:3000 wont do. Here is how I start on port 80 without rubymine:

rvmsudo rails s -p 80 (then i enter a password)


Any ideas?

8 comments
Comment actions Permalink

This is not supported yet, you can try creating a feature request at http://youtrack.jetbrains.net/issues/RUBY, however to be honest I don't think it would get any significant priority.

Regards,
Oleg

0
Comment actions Permalink

This would defintely be a very helpful feature! I really like to debug in RubyMine but I'm forced to use to console to start it on port 80.

0
Comment actions Permalink

Why do you need this?  

Regards, Oleg.

0
Comment actions Permalink

I thought the only way to debug a Rails project using Rubymine would be to start it up the server in Rubymine itself. After a little searching, it appears though that there is a 'Remote Debug' feature. Still, would be nicer if I could just start up the server from Rubymine itself.

0
Comment actions Permalink

It is possible to start server from RubyMine but port you use should be greater than 1000.  Why do you can not use 8080 (or some other port) instead of 80?

Regards, Oleg.

0
Comment actions Permalink

The rails app I'm working on has per user subdomains. Stuff like subdomain.xyz.com:3000 breaks the app logic. If I start on port 80, I can do subdomain.xyz.com which is more realistic.

I'm adding subdomain.xyz.com to my /etc/hosts file.

0
Comment actions Permalink

I had the original problem and the need to handle subdomain apps but no longer need this type of support. Even though I think it should exist, i found some good workarounds. I simply started using .lvh.me:3000, I realized I didnt need port 80 afterall.

For anyone using subdomains to deal with user, I recommend you only use the subdomain as the identify and not the full url. i.e. if the url is tenant1.domain.com, you should only store "tenant1" in the database, so now you can debug without worry about ports and can use lvh.me with rubymine's debugger.

It also makes it easier for you if you switch domain names or to share the same data locally and in production.

0
Comment actions Permalink

I'd suggest to use some "allowed" port (e.g. 3000) and use port-forwarding to forward 3000 to 80.

Oleg.

0

Please sign in to leave a comment.