whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: update toucher to use symbolic link
Date Wed, 28 Jun 2017 17:22:30 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new d6e0a2d  update toucher to use symbolic link
d6e0a2d is described below

commit d6e0a2ddf81013f3fd95f912dd15b6feb175efa1
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Jun 28 13:22:17 2017 -0400

    update toucher to use symbolic link
---
 MACOSX.md            | 3 +--
 config/toucher.plist | 2 +-
 tools/toucher.rb     | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/MACOSX.md b/MACOSX.md
index 26acf34..b9b5b24 100644
--- a/MACOSX.md
+++ b/MACOSX.md
@@ -453,8 +453,7 @@ changes and restart applications that might be affected on the receipt
of
 the next request.
 
 To have this tool launch automatically, copy `whimsy/config/toucher.plist` to
-'~/Library/LaunchAgents/'.  Edit the paths in the `ProgramArguments` as
-required.  And start via:
+'~/Library/LaunchAgents/'.  Start via:
 
 ```
 launchctl load ~/Library/LaunchAgents/toucher.plist
diff --git a/config/toucher.plist b/config/toucher.plist
index 6cd8096..47d0de7 100644
--- a/config/toucher.plist
+++ b/config/toucher.plist
@@ -8,7 +8,7 @@
     <key>ProgramArguments</key>
     <array>
         <string>/usr/local/bin/ruby</string>
-        <string>/Users/rubys/git/whimsy/tools/toucher.rb</string>
+        <string>/srv/whimsy/tools/toucher.rb</string>
     </array>
 
     <key>KeepAlive</key>
diff --git a/tools/toucher.rb b/tools/toucher.rb
index 6e5a957..67311b2 100755
--- a/tools/toucher.rb
+++ b/tools/toucher.rb
@@ -13,7 +13,7 @@ Dir["#{File.expand_path('../..', __FILE__)}/**/restart.txt"].each do |restart|
   app = File.expand_path('../..', restart)
   next unless File.exist? "#{app}/config.ru"
 
-  watch[app] << restart
+  watch[File.realpath(app)] << restart
 
   if File.exist? "#{app}/Gemfile.lock"
     paths = File.read("#{app}/Gemfile.lock")[/^PATH.*?\n\n/m].to_s

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message