This is an automated email from the ASF dual-hosted git repository.

sebb 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 0c87e7f  Explain Passenger restart
0c87e7f is described below

commit 0c87e7f3e46d09f7d160c7f501364ceb442fdffd
Author: Sebb <[email protected]>
AuthorDate: Sun Aug 8 01:53:12 2021 +0100

    Explain Passenger restart
---
 Rakefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Rakefile b/Rakefile
index 0ef9451..12850ee 100644
--- a/Rakefile
+++ b/Rakefile
@@ -16,6 +16,8 @@ task :update, [:command] do |task, args|
   lib_update = Dir['lib/**/*'].map {|n| File.mtime n rescue Time.at(0)}.max
 
   # restart passenger applications that have changed since the last update
+  # If a Gem is later updated below, any passenger app is restarted again.
+  # Most of the time, no Gems are installed, so this deploys changes quicker
   Dir['**/config.ru'].each do |rackapp|
     Dir.chdir File.dirname(rackapp) do
       old_baseline = File.mtime('tmp/restart.txt') rescue Time.at(0)
@@ -89,7 +91,7 @@ task :update, [:command] do |task, args|
       bundler = 'bundle' unless File.exist?(bundler)
       system(bundler, args.command || 'update')
 
-      # if new gems were istalled and this directory contains a passenger
+      # if new gems were installed and this directory contains a passenger
       #  application, restart it
       if (File.mtime('Gemfile.lock') rescue Time.at(0)) != locktime
         if File.exist?('tmp/restart.txt')

Reply via email to