On Sun, 8 Aug 2021 at 00:46, Sam Ruby <ru...@intertwingly.net> wrote:
>
> On Sat, Aug 7, 2021 at 7:34 PM sebb <seb...@gmail.com> wrote:
> >
> > The 'rake update' command restarts Passenger apps that have changed
> > since the last update.
> >
> > It then goes on the update the Gems.
>
> ... and my touch restart.txt again.

I'd overlooked that

> > That seems a bit odd: would it not be better to update the Gems first,
> > so any restarted apps pick up the new Gems?
>
> Gem install may take a while.  Most of the time, no new gems are required.
>
> Put another way, with the current dual approach, changes that you push
> will be deployed quicker, and in the somewhat rare case that the
> deploy fails due to missing a dependency, things will straighten
> themselves out in minutes.

I see, thanks

> > The task comment says:
> > '# update gems and restart applications as needed'
> > i.e. the reverse order
>
> And later you will find the following:
>
>       # if new gems were istalled and this directory contains a passenger
>       #  application, restart it
>
> (and, yes, there is a typo in that comment)
>
> > Sebb
>
> - Sam Ruby

Reply via email to