* [ruby-core:55722] [CommonRuby - Feature #8586][Open] Add a simple file server to WEBrick
@ 2013-06-30 23:00 tenderlovemaking (Aaron Patterson)
2013-07-01 3:22 ` [ruby-core:55723] [CommonRuby - Feature #8586][Closed] " nobu (Nobuyoshi Nakada)
0 siblings, 1 reply; 2+ messages in thread
From: tenderlovemaking (Aaron Patterson) @ 2013-06-30 23:00 UTC (permalink / raw
To: ruby-core
Issue #8586 has been reported by tenderlovemaking (Aaron Patterson).
----------------------------------------
Feature #8586: Add a simple file server to WEBrick
https://bugs.ruby-lang.org/issues/8586
Author: tenderlovemaking (Aaron Patterson)
Status: Open
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category:
Target version:
Hi,
Frequently I need to run a simple file server in a directory, for example to temporarily share files, or try out some html / JS. If I want to do this with Ruby, I have to download a gem, or write a few lines with WEBrick.
I'd like to add a simple file server that when required will just serve the files from the current directory like this:
###
# Simple WEBrick file server. Usage:
#
# Start the file server, serving the files in the current directory
#
# $ ruby -rwebrick/simple -e start
#
# Start the file server, serving the files in the current directory on
# port 5000.
#
# $ ruby -rwebrick/simple -e start 5000
#
# Start the file server, serving the files in /tmp on port 5000.
#
# $ ruby -rwebrick/simple -e start 5000 /tmp
I've attached the patch that implements this. Thanks!
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-core:55723] [CommonRuby - Feature #8586][Closed] Add a simple file server to WEBrick
2013-06-30 23:00 [ruby-core:55722] [CommonRuby - Feature #8586][Open] Add a simple file server to WEBrick tenderlovemaking (Aaron Patterson)
@ 2013-07-01 3:22 ` nobu (Nobuyoshi Nakada)
0 siblings, 0 replies; 2+ messages in thread
From: nobu (Nobuyoshi Nakada) @ 2013-07-01 3:22 UTC (permalink / raw
To: ruby-core
Issue #8586 has been updated by nobu (Nobuyoshi Nakada).
Status changed from Open to Closed
ruby -run -e httpd -- -p 5000 /tmp
----------------------------------------
Feature #8586: Add a simple file server to WEBrick
https://bugs.ruby-lang.org/issues/8586#change-40218
Author: tenderlovemaking (Aaron Patterson)
Status: Closed
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category:
Target version:
Hi,
Frequently I need to run a simple file server in a directory, for example to temporarily share files, or try out some html / JS. If I want to do this with Ruby, I have to download a gem, or write a few lines with WEBrick.
I'd like to add a simple file server that when required will just serve the files from the current directory like this:
###
# Simple WEBrick file server. Usage:
#
# Start the file server, serving the files in the current directory
#
# $ ruby -rwebrick/simple -e start
#
# Start the file server, serving the files in the current directory on
# port 5000.
#
# $ ruby -rwebrick/simple -e start 5000
#
# Start the file server, serving the files in /tmp on port 5000.
#
# $ ruby -rwebrick/simple -e start 5000 /tmp
I've attached the patch that implements this. Thanks!
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-01 3:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-30 23:00 [ruby-core:55722] [CommonRuby - Feature #8586][Open] Add a simple file server to WEBrick tenderlovemaking (Aaron Patterson)
2013-07-01 3:22 ` [ruby-core:55723] [CommonRuby - Feature #8586][Closed] " nobu (Nobuyoshi Nakada)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).