KDesp73 / Ruby-Web-Server

A pure-ruby web server for static sites

Home Page:http://localhost:2000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Web Server

A simple functional server made with pure Ruby.

server index

Requirements

  • Ruby 2.7.0 minimum

How to use it

  1. Clone this repository

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

  3. In selected directory run:

    ruby ./run.rb <site-folder>

    The server is now running on localhost:2000

  4. Change the configuration from the 'config.yml' file if necessary

TODO

  • Detect changes (Live Server functionality)

Licence

MIT

About

A pure-ruby web server for static sites

http://localhost:2000

License:MIT License


Languages

Language:Ruby 71.7%Language:HTML 28.3%