Hi all, I want to start my rails server by WEBrick. How to set the WEBrick up for production? (not http://localhost:3000) I want others can link to my web server. Thanks, -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 8 April 2012 13:37, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi all, > > > I want to start my rails server by WEBrick. > > How to set the WEBrick up for production? (not http://localhost:3000) > > I want others can link to my web server.Do you mean on the internet or just on your local network? If you mean your local network they can probably access it by http://your_pc_IP_address:3000 just running webrick. If you mean on the intranet then have a look at Heroku. Colin> > > > > > Thanks, > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- gplus.to/clanlaw -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 04/08/2012 05:37 AM, CC Chen wrote:> Hi all, > > > I want to start my rails server by WEBrick. > > How to set the WEBrick up for production? (not http://localhost:3000) > > I want others can link to my web server.If you want webrick to operate on another port for some reason use the -p option script/server webrick -p portnumber (for ROR 2.x) On Linux/Unix based systems low numbered ports will require you to run as root. Not a good option. If on Linux/Unix use apache2 or nginx + passenger instead of webrick. If on Windows you can use webrick or mongrel though I think mongrel is a better choice.> > > > > Thanks, >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks your help, I can share my web to others. By the way, if I don''t want others people to see my IP address on my local network, How to implement this? Thanks, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> 於 2012年4月8日下午8:47 寫道:> On 8 April 2012 13:37, CC Chen <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > Hi all, > > > > > > I want to start my rails server by WEBrick. > > > > How to set the WEBrick up for production? (not http://localhost:3000) > > > > I want others can link to my web server. > > Do you mean on the internet or just on your local network? If you > mean your local network they can probably access it by > http://your_pc_IP_address:3000 just running webrick. > > If you mean on the intranet then have a look at Heroku. > > Colin > > > > > > > > > > > > > Thanks, > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > > > > -- > gplus.to/clanlaw > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.