Skip to content

Ruby Web Server

A simple functional server made with pure Ruby.

Section titled “A simple functional server made with pure Ruby.”

It can host static websites

server index

  • Ruby 2.7.0 minimum
  1. Clone this repository

    Terminal window
    git clone https://github.com/KDesp73/Ruby-Web-Server
  2. Run bundle install to install the necessary gems

  3. Add your static site in the docs/ folder

  4. In selected directory run:

    Terminal window
    ruby ./server.rb

    The server is now running on localhost:2000

  5. Change the configuration from the ‘config.yml’ file if necessary

MIT