clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

Serve web UI without installation

Open UlrichEckhardt opened this issue 1 year ago • 1 comments

Heya!

This should be the final PR to easily support Slim (or any PSR-compatible framework) out of the box. This allows setting the installation path for the web UI files to false in order to turn off installation altogether. Instead, it then serves the files of the web UI from the '/clockwork' root dir as well.

This serves two use-cases:

  • The htdoc directory on your system is not writable, so Clockwork can't install any files. This should be the default for every web server, just as a security measure.
  • Every request goes through the a CGI script, so there is no directory where an installed file would become visible automatically. This is the case e.g. when using php -S localhost:8080 -t public public/index.php to serve a web interface.

Cheers!

Uli

UlrichEckhardt avatar Mar 20 '24 09:03 UlrichEckhardt

Hey, thanks for another great PR, looks promising. I will try to review and merge it this week.

itsgoingd avatar Mar 26 '24 21:03 itsgoingd

I ended up reworking this slightly and making it a default, which is a small breaking change for people using the web UI without specifying the paths explicitly.

itsgoingd avatar Oct 20 '24 14:10 itsgoingd