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.