Closed tomas-zemres closed 4 years ago
I have a same problem.(ここ日本語で書いていいのかな…google翻訳英語ですみません)
Startup command
plackup /var/www/root_dir/script/index.psgi -s Starlet -R /var/www/root_dir/conf/,/var/www/root_dir/lib/
Error occurred (The child process is repeatedly generated until the server is stopped)
Watching /var/www/root_dir/conf/ /var/www/root_dir/lib/ /var/www/root_dir/script/lib /var/www/root_dir/script/index.psgi for file updates. watch failed: そのようなファイルやディレクトリはありません at /usr/local/share/perl5/Plack/Loader/Restarter.pm line 79.
In my environment, there is no lib directory under directory(/var/www/root_dir/script) of *.psgi.
In my environment there is no problem with $ Plack :: VERSION = 1.0044, After that my environment has been rebuilt(including OS) to 1.0047, an error has come to be issued. The contents of Runner.pm look the same. As a first aid, I created the lib directory under the script directory. The server is working without problems. (1.0044では問題なく動いていましたが、OSごと再構築したついでに1.0047にバージョンアップしてからエラーが発生するようになりました。Ruuner.pmの問題の箇所は同じに見えます。script下にlibを作ったら動いたので、それを応急処置としてます)
plackup: Check the default path of watch exists #620
A pull request was present before this report. I found just now. Perhaps I think this issue will be fixed.
i made a temporary fix by reverting the breaking change (https://github.com/miyagawa/Filesys-Notify-Simple/pull/21) in Filesys::Notify::Simple in 0.14
If I run my webapp in terminal:
starman $args -R /myapp/perllib /myapp/bin/app.psgi
It says:
There is reported error "No such file or directory" (there is missing filename, due to another bug - https://github.com/miyagawa/Filesys-Notify-Simple/issues/26), but missing filename is "/myapp/bin/lib"
But directory "/myapp/bin/lib" does not exist in my project.
Plack::Runner calls watch(...) on non-existing directory: https://github.com/plack/Plack/blob/master/lib/Plack/Runner.pm#L178 $self->loader->watch( File::Basename::dirname($psgi) . "/lib", $psgi );
"Auto-restart" is not working in this case also for other watched directories after argument "-R"