Skip to content

Latest commit

 

History

History
56 lines (51 loc) · 892 Bytes

README.md

File metadata and controls

56 lines (51 loc) · 892 Bytes

eletrize - Golang Live Reload

Install

go install github.com/lasfh/eletrize@latest

Run simple command

$ eletrize run ./server "go build" --label="API"

Run command

$ eletrize eletrize.json

Configuration example

{
  "schema": [
    {
      "label": "SCHEMA NAME",
      "envs": {
        "key": "value"
      },
      "env_file": ".env",
      "watcher": {
        "path": ".",
        "recursive": true,
        "extensions": [
          ".go",
          ".json"
        ]
      },
      "commands": {
        "build": {
          "method": "go",
          "args": ["build"],
          "envs": {},
          "env_file": "",
        },
        "run": [
          {
            "label": "WORKER",
            "method": "./worker",
            "args": [],
            "envs": {},
            "env_file": "",
          }
        ]
      }
    }
  ]
}