Skip to content

Commit

Permalink
Merge pull request #2212 from drgrice1/watch-PG.pl
Browse files Browse the repository at this point in the history
Watch the PG.pl macro file when running morbo.
  • Loading branch information
taniwallach authored Sep 18, 2023
2 parents 4cc5370 + bdd460b commit e7fb7c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/dev_scripts/webwork2-morbo
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ push(@watch,
"$webwork_root/lib", "$webwork_root/templates", "$webwork_root/htdocs/js",
"$webwork_root/htdocs/themes", "$webwork_root/conf");

# Add the pg lib and pg htdocs directory if they are readable.
push(@watch, "$config->{pg_dir}/lib") if -r "$config->{pg_dir}/lib";
push(@watch, "$config->{pg_dir}/htdocs") if -r "$config->{pg_dir}/htdocs";
# Add the pg lib and pg htdocs directory and the PG.pl macro if they are readable.
push(@watch, "$config->{pg_dir}/lib") if -r "$config->{pg_dir}/lib";
push(@watch, "$config->{pg_dir}/htdocs") if -r "$config->{pg_dir}/htdocs";
push(@watch, "$config->{pg_dir}/macros/PG.pl") if -r "$config->{pg_dir}/macros/PG.pl";

my $morbo = Mojo::Server::Morbo->new(silent => !$verbose);
$morbo->daemon->listen(\@listen) if @listen;
Expand Down

0 comments on commit e7fb7c4

Please sign in to comment.