Skip to content

Instantly share code, notes, and snippets.

@maeharin
Last active May 15, 2023 06:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maeharin/4461321 to your computer and use it in GitHub Desktop.
Save maeharin/4461321 to your computer and use it in GitHub Desktop.
WEBrickを起動させるワンライナー
# 起動
$ ruby -r webrick -e 'WEBrick::HTTPServer.new(:DocumentRoot => "./", :Port => 8080).start'
# 停止
$ ps aux | grep ruby
$ kill -9 <pid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment