Use a custom rackup port
When using the rackup gem, you can set the port with the --port
flag
rackup --port 4000
[2023-02-18 14:28:17] INFO WEBrick 1.8.1
[2023-02-18 14:28:17] INFO ruby 3.1.2 (2022-04-12) [x86_64-linux]
[2023-02-18 14:28:17] INFO WEBrick::HTTPServer#start: pid=62732 port=4000
Tweet