Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Created May 17, 2023 13:55
Show Gist options
  • Save hidakatsuya/f0363f47390ddf3d4d283b98adebdce3 to your computer and use it in GitHub Desktop.
Save hidakatsuya/f0363f47390ddf3d4d283b98adebdce3 to your computer and use it in GitHub Desktop.
ruby -run -e httpd
$ gem i webrick
$ ruby -run -e httpd -- --port 8000 .
[2023-05-17 22:52:46] INFO  WEBrick 1.8.1
[2023-05-17 22:52:46] INFO  ruby 3.2.1 (2023-02-08) [x86_64-linux]
[2023-05-17 22:52:46] INFO  WEBrick::HTTPServer#start: pid=70048 port=8000
[2023-05-17 22:52:46] INFO  To access this server, open this URL in a browser:
[2023-05-17 22:52:46] INFO      http://127.0.0.1:8000
[2023-05-17 22:52:46] INFO      http://[::1]:8000

library un https://docs.ruby-lang.org/ja/latest/library/un.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment