https://github.com/yoshoku/autoreload_server
Simple auto-reloading web server in Ruby
https://github.com/yoshoku/autoreload_server
autoreload gem ruby web
Last synced: 21 days ago
JSON representation
Simple auto-reloading web server in Ruby
- Host: GitHub
- URL: https://github.com/yoshoku/autoreload_server
- Owner: yoshoku
- License: mit
- Created: 2025-09-08T04:12:56.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2025-09-09T13:00:27.000Z (27 days ago)
- Last Synced: 2025-09-09T15:52:37.128Z (26 days ago)
- Topics: autoreload, gem, ruby, web
- Language: Ruby
- Homepage: https://rubygems.org/gems/autoreload_server
- Size: 70.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# autoreload_server
[](https://badge.fury.io/rb/autoreload_server)
[](https://github.com/yoshoku/autoreload_server/blob/main/LICENSE.txt)A simple web server for local development that provides an auto-reloading feature. It automatically refreshes the browser when a file is changed.
## Installation
Install the gem and add to the application's Gemfile by executing:
```bash
bundle add autoreload_server
```If bundler is not being used to manage dependencies, install the gem by executing:
```bash
gem install autoreload_server
```## Usage
The `autoreload-server` command starts a web server with the specified directory as the document root.
```sh
$ ls -1 public/
index.html
$ autoreload-server public
```Once the server is running, access http://localhost:4000/.
When you modify a file in the `public` directory, the browser will automatically reload.## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/autoreload_server.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/yoshoku/autoreload_server/blob/main/CODE_OF_CONDUCT.md).## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the AutoreloadServer project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yoshoku/autoreload_server/blob/main/CODE_OF_CONDUCT.md).
_OF_CONDUCT.md).