Skip to content
/ rtw Public

Run The World. Command aggregator output. Define many services watch them in one place.

Notifications You must be signed in to change notification settings

flowHater/rtw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use it

install

go install github.com/flowHater/[email protected]

declare all your command/service in a services.json

{
  "rootPath": "/home/myuser/Src/",
  "services": [
    {
      "path": "service-a",
      "command": "npm",
      "args": ["run", "start"],
      "name": "service-a:api"
    },
    {
      "path": "service-a",
      "command": "npm",
      "args": ["run", "start:worker1"],
      "name": "service-a:worker1"
    },
    {
      "path": "service-b",
      "command": "npm",
      "args": ["run", "start:api"],
      "name": "service-b:api"
    },
    {
      "path": "service-b",
      "command": "go",
      "args": ["run", "./cmd/worker37"],
      "name": "service-b:worker37"
    },
    {
      "path": "front",
      "command": "yarn",
      "args": ["start"],
      "name": "front"
    }
  ]
}

run

rtw --file service.json [--stopOnError] Because rtw will prefix each log line by the service name, you can redirect the command to output in a log file. tail -f logs | grep "servicename" to watch only a specific service.

About

Run The World. Command aggregator output. Define many services watch them in one place.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages