Rails Server IP and PORT

1,287 views
Skip to first unread message

pry sydorei

unread,
Jul 22, 2013, 8:40:06 AM7/22/13
to pai...@googlegroups.com
Hi All,

Normally Rails server running on 0.0.0.0:3000 I wonder if I install server and I expect it to be
running on 192.168.1.106 with default port 80 ?

Looking forward to hear back from you guys soon.

Best Regards,
Sydore Pry

jack...@fastmail.fm

unread,
Jul 24, 2013, 3:06:58 AM7/24/13
to pai...@googlegroups.com
You can get a list of options with:

rails server -h

So you can specify -p and -b options to get what you want:

rails server -b 192.168.1.106 -b 80

--
You received this message because you are subscribed to the Google Groups "Pailin (Cambodia Ruby/RubyOnRails User Group)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pailin+un...@googlegroups.com.
To post to this group, send email to pai...@googlegroups.com.
 
 
 
 

pry sydorei

unread,
Jul 24, 2013, 3:08:45 AM7/24/13
to pai...@googlegroups.com
Hi Jack,

Thanks for your help, any other configuration file where I will just use rails server and it automatically start with the IP and PORT I want?

Best Regards,
Sydore Pry


jack...@fastmail.fm

unread,
Jul 24, 2013, 3:14:40 AM7/24/13
to pai...@googlegroups.com
There's this stackoverflow question/answer:
 
It seems the easiest thing to do is just put your rails command with custom options in a shell script.

Samnang Chhun

unread,
Jul 24, 2013, 3:38:05 AM7/24/13
to pai...@googlegroups.com
Using rails s works fine in development with your default web browser, but on production we usually use either  Passenger or Unicorn, and they let you customize port and server name whatever you want. Another option for development environement web server http://pow.cx/.

-
Samnang



For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages