Redirect to "maintenance" page or simular instead of the experiment, when database connection fails.
In order to avoid the loss of experiment data, we could redirect to a maintenance or error page, when a simple query to the database fails.
The implementation is relatively simple - we customize the /
-route redirect (which already exists) to point to another page, when a simple query fails. For now, we can also point the participants to an e-mail-address configured via .env
, so that the scientist gets informed.
@jakob What do you think?