In this article, I’d like to create a website using Ruby without any web framework. Firstly, write down this code lines
into a file, e.g. web.rb
Then run command ruby web.rb
in your terminal. Or use nohup ruby web.rb &
if you want to run server in the background.
references: