Home Ruby Web Server
Post
Cancel

Ruby Web Server

A simple functional server made with pure Ruby.

It can host static websites

server index

Requirements

  • Ruby 2.7.0 minimum

How to use it

  1. Clone this repository

    1
    
     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:

    1
    
     ruby ./server.rb
    

    The server is now running on localhost:2000

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

Licence

MIT

This post is licensed under CC BY 4.0 by the author.