fileUpdater

module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2022 License: Apache-2.0

README

fileUpdater

The file updater helps you use a web page with an editor to update your files and trigger the related command hooks. Just a single binary file (thanks golang!)

features

  • easy deploy (single binary file)
  • pre command hook
  • post command hook
  • command exec timeout (todo)
  • auto backup
  • daemon
  • update itself
  • low memory require
  • exec shell command
  • tiny init (simple superviosr)(todo)
  • basic auth (todo)

How to use it

| Linux

  1. get the binary
wget https://github.com/GoSome/fileUpdater/releases/download/v0.2/fileupdater-amd64-linux
chmod +x fileupdater-amd64-linux
  1. create simple config

config.yaml


server_port: "8080"
server_host: "0.0.0.0"
updaters:
  - name: test1
    path: /tmp/test.txt
    backup: false
    pre_hook:
      mode: strict
      commands:
        - ls -lha

  1. just run
./fileupdater-amd64-linux -i -config config.yaml

UI

fileUpdater

Hook Seq

PRE -> WRITE -> POST

Directories

Path Synopsis
@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:49 PM @ProjectName fileUpdater
@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:49 PM @ProjectName fileUpdater
pkg
binding
@Description: just go @Author: skipper @Date: 2020/1/15 @Time: 6:41 PM @ProjectName fileUpdater
@Description: just go @Author: skipper @Date: 2020/1/15 @Time: 6:41 PM @ProjectName fileUpdater
core
@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 3:50 PM @ProjectName fileUpdater
@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 3:50 PM @ProjectName fileUpdater
server
@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:08 PM @ProjectName fileUpdater
@Description: just go @Author: skipper @Date: 2020/1/13 @Time: 5:08 PM @ProjectName fileUpdater

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL