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,

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

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 Law clanlaw@googlemail.com 於 2012年4月8日下午8:47 寫道: