A simple functional server made with pure Ruby.
It can host static websites
Requirements
- Ruby 2.7.0 minimum
How to use it
Clone this repository
1
git clone https://github.com/KDesp73/Ruby-Web-Server
Run
bundle install
to install the necessary gemsAdd your static site in the
docs/
folderIn selected directory run:
1
ruby ./server.rb
The server is now running on localhost:2000
Change the configuration from the ‘config.yml’ file if necessary