From 61981e0973c39cf5a2258877188969449c3c62fa Mon Sep 17 00:00:00 2001 From: Ulysse Buonomo Date: Fri, 23 Jun 2023 12:30:34 -0500 Subject: [PATCH] ruby: add http server example (#10410) * ruby: add http server example --------- Co-authored-by: K.B.Dharun Krishna --- pages/common/ruby.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/ruby.md b/pages/common/ruby.md index 6773ecb5b..7649856bc 100644 --- a/pages/common/ruby.md +++ b/pages/common/ruby.md @@ -19,6 +19,10 @@ `ruby -c {{script.rb}}` +- Start the built-in HTTP server on port 8080 in the current directory: + +`ruby -run -e httpd` + - Show the version of Ruby you are using: `ruby -v`