WEBrick setup

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,

On 8 April 2012 13:37, CC Chen [email protected] 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


You received this message because you are subscribed to the Google G. “Ruby
on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


gplus.to/clanlaw

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 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 L. [email protected] 2012~48U8:47 gDG