diff --git a/Formula/tile38.rb b/Formula/tile38.rb index 2d73b057a6..699ed0f386 100644 --- a/Formula/tile38.rb +++ b/Formula/tile38.rb @@ -1,8 +1,8 @@ class Tile38 < Formula desc "In-memory geolocation data store, spatial index, and realtime geofence" homepage "http://tile38.com" - url "https://github.com/tidwall/tile38/archive/1.11.1.tar.gz" - sha256 "e5eac0cb54eae755ccf88463985bdd5f0e30c7575d9793f0427e5eae1257e134" + url "https://github.com/tidwall/tile38/archive/1.12.0.tar.gz" + sha256 "ca054d40109ff970fccd29efc425fc249b1824bf9dccfdc50e461d9e980ba014" head "https://github.com/tidwall/tile38.git" bottle do @@ -31,12 +31,41 @@ class Tile38 < Formula datadir.mkpath end - def caveats; <<~EOS - Data directory created at #{datadir}. To start the server: - tile38-server -d #{datadir} + plist_options :manual => "tile38-server -d #{HOMEBREW_PREFIX}/var/tile38/data" - To connect: - tile38-cli + def plist; <<~EOS + + + + + KeepAlive + + SuccessfulExit + + + Label + #{plist_name} + ProgramArguments + + #{opt_bin}/tile38-server + -d + #{datadir} + + RunAtLoad + + WorkingDirectory + #{var} + StandardErrorPath + #{var}/log/tile38.log + StandardOutPath + #{var}/log/tile38.log + + + EOS + end + + def caveats; <<~EOS + To connect: tile38-cli EOS end