Today I Learned

hashrocket A Hashrocket project

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
See More #ruby TILs
Looking for help? Each developer at Hashrocket has years of experience working with Ruby applications of all types and sizes. We're an active presence at Ruby conferences, have written some of the most popular gems, and have worked on many of the web's Ruby on Rails success stories. Contact us today to talk about your Ruby project.