Last active
May 15, 2023 06:29
-
-
Save maeharin/4461321 to your computer and use it in GitHub Desktop.
WEBrickを起動させるワンライナー
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 起動 | |
$ 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