Configurazione RAILS - WEBRick

Ciao a tutti,
su una macchina con sistema operativa XP noto un lentezza
nell’operatività di RAILS.

Ho testato sotto debian e a colpo d’occhio ho trovato che WEBrick è in
ascolto sulla sola porta locale, mentre sotto XP è tutto impostato a
0.0.0.0:

sh-3.1$ ruby script/server
=> Booting WEBrick…
=> Rails application started on http://127.0.0.1:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-10-16 21:05:36] INFO WEBrick 1.3.1
[2006-10-16 21:05:36] INFO ruby 1.8.5 (2006-08-25) [i486-linux]
[2006-10-16 21:05:36] INFO WEBrick::HTTPServer#start: pid=7145
port=3000

Dove posso agire per limitare le porte al solo localhost?

Grazie
Massimo

E impari che puoi davvero sopportare,
che sei davvero forte,
e che vali davvero.


HomePage: http://www.massimo.arnaudo.name
LinuxGroup: http://www.lugge.net

Arnaudo Massimo wrote:

Ciao a tutti,
su una macchina con sistema operativa XP noto un lentezza
nell’operatività di RAILS.

In effetti, ci mette un po’ a partire.

Ho testato sotto debian e a colpo d’occhio ho trovato che WEBrick è in
ascolto sulla sola porta locale, mentre sotto XP è tutto impostato a
0.0.0.0:

Dove posso agire per limitare le porte al solo localhost?

$ script/server -h
=> Booting WEBrick…
Usage: ruby server [options]

-p, --port=port                  Runs Rails on the specified port.
                                 Default: 3000
-b, --binding=ip                 Binds Rails to the specified ip.
                                 Default: 0.0.0.0
-e, --environment=name           Specifies the environment to run

this server under (test/development/production).
Default: development
-m, --mime-types=filename Specifies an Apache style
mime.types configuration file to be used for mime types
Default: none
-d, --daemon Make Rails run as a Daemon (only
works if fork is available – meaning on *nix).
-c, --charset=charset Set default charset for output.
Default: UTF-8

-h, --help                       Show this help message.

Buon cambio di listening interface!


Luca S.G. de Marinis - Software Engineer - Interact S.r.L.
http://www.interact.it

Le informazioni trasmesse attraverso la presente e-mail ed i suoi
allegati sono diretti esclusivamente al destinatario e devono ritenersi
riservati con divieto di diffusione e di uso. La diffusione e la
comunicazione da parte di soggetto diverso dal destinatario è vietata
dall’art. 616 e ss. c.p. e dal d. l.vo n. 196/03.
Se la presente e-mail ed i suoi allegati fossero stati ricevuti per
errore da persona diversa dal destinatario siete pregati di distruggere
tutto quanto ricevuto e di informare il mittente con lo stesso mezzo.

The information transmitted via the current e-mail and the enclosed
documents are directed exclusively towards the intended addressee and
must be considered confidential; any distribution and use are strictly
prohibited.
Diffusion and communication of the information contained in this message
by anyone other than the addressee is prohibited by art. 616 and the
following sections of penal code and the legislative decree no. 196/03.
Should the current e-mail and its attachments be received by mistake by
persons other than the addressee, you are requested to destroy the
entire message and inform the sender using the same means.

server under (test/development/production).

Buon cambio di listening interface!

Ciao,
grazie per la dritta, ma vorrei rendere la cosa definitiva modificando
il valore di defult: in quale file si modifica tale valore?

Grazie
Massimo

E impari che puoi davvero sopportare,
che sei davvero forte,
e che vali davvero.


HomePage: http://www.massimo.arnaudo.name
LinuxGroup: http://www.lugge.net