/ron

Application watcher and restart.

Primary LanguageGo

ron

GitHub test cases

Used to build and restart a multiple programing when it crashes or some watched file changes. Aimed to be used in development only.

Summary

Demo

Install

  • Linux and macos
$ curl -k -L -s https://github.com/9bany/ron/releases/download/0.0.1/ron > ron;chmod +x ron;sudo mv ron /usr/local/bin

Ron file

At the root of the project you want to observe, create new file with name ron.yaml.

Properties

key type description
root_path string Path to the directory to be observed
exec_path string Path to application entry point
language [string] Execution language. Check here if your favorite language has already been implemented
watch_extension Watch List of extensions to be observed.
ignore_path [string] List of paths not to be ignore.

Example

Below is a simple example of the ron.yaml file

root_path: "./"
exec_path: "index.js"
language: "node"
watch_extension:
  - js
  - ts
ignore_path:
  - "./tests/"

Once you have the Ron cli set up, just run the command in the folder containing the ron.yaml file.

ron

Implemented languages

Languages Name Ex
GO go example
NodeJs node example
Typescript ts-node example

Contributing

  1. Fork the repository
  2. Create a new branch
  3. Implement your solution
  4. Update your change to release.md file
  5. Commit
  6. Open a Pull Request

Thanks!