From 1954b1ac54397d9d7019714acda7b22292625019 Mon Sep 17 00:00:00 2001 From: Daniel Bayley Date: Mon, 8 Jan 2024 23:03:28 +0000 Subject: [PATCH 1/2] Add background service Enable [`brew services`](https://docs.brew.sh/Formula-Cookbook#service-files) to run persistent local server. --- Formula/nocodb.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Formula/nocodb.rb b/Formula/nocodb.rb index 61376d6..7504873 100644 --- a/Formula/nocodb.rb +++ b/Formula/nocodb.rb @@ -8,5 +8,14 @@ class Nocodb < Formula def install bin.install "nocodb" + (var/"lib/nocodb").mkpath end -end \ No newline at end of file + + service do + run bin/"nocodb" + keep_alive true + working_dir var/"lib/nocodb" + log_path "/dev/null" + error_log_path var/"log/nocodb.log" + end +end From 0ab022ea1e6a2bcc5a04a6b46caffbbc7634be39 Mon Sep 17 00:00:00 2001 From: Daniel Bayley Date: Mon, 8 Jan 2024 23:23:21 +0000 Subject: [PATCH 2/2] Add `brew install --HEAD` option --- Formula/nocodb.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/nocodb.rb b/Formula/nocodb.rb index 7504873..bb870fe 100644 --- a/Formula/nocodb.rb +++ b/Formula/nocodb.rb @@ -5,6 +5,7 @@ class Nocodb < Formula sha256 "a59af2a4dbaa4d8e005c33ddae31768321c781dec1e44424e9316d7020370e21" license "MIT" version "0.203.2" + head "#{homepage}.git", branch: "develop" def install bin.install "nocodb"