KorAP / Kalamar

:octopus: Mojolicious-based Frontend for KorAP
BSD 2-Clause "Simplified" License
7 stars 2 forks source link

Add Warn-on-environment Plugin #134

Open Akron opened 3 years ago

Akron commented 3 years ago

It would be nice to create a Mojo plugin that can check the perl(brew) environment on start and warn, if the environment is not correct. This could be realised as a non-KorAP-Plugin though, so there is no need to couple this to Kalamar.

The use case are different environments on our servers for different perls and local-libs. Expected behaviour: In the configuration file there is an entry like "preferred_env":"perl-5.30.2@korap-stable" and the server on startup warns, if this requirement is not met.