I have a sinatra foo.rb service
To run it on a different port, I would type "ruby foo.rb -p 5000".
While the program is running, I would like to get the port (in this case 5000) and other information. Is there any way to get this information while the application is running?
thank
source
share