mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:42:10 +02:00
ruby: add http server example (#10410)
* ruby: add http server example --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
24e09b04c1
commit
61981e0973
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
||||||
|
|
||||||
`ruby -c {{script.rb}}`
|
`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:
|
- Show the version of Ruby you are using:
|
||||||
|
|
||||||
`ruby -v`
|
`ruby -v`
|
||||||
|
|
Loading…
Add table
Reference in a new issue