dorodere / komplett-normale-busliste

Registration system for bus drives, likely not of interest
GNU Affero General Public License v3.0
0 stars 0 forks source link

Proper local testing mode #7

Closed dorodere closed 1 year ago

dorodere commented 1 year ago

A flag present in Rocket.toml or provided through other means needs to denote when the instance is switched into testing mode, in effect simply not sending emails but just printing the URL directly to stdout instead.

This basically just means adding a config option in config.rs and then applying this patch properly (in a way that doesn't require pre-runtime changes anymore but depends on the config option instead):

https://github.com/dorodere/komplett-normale-busliste/blob/37e479201def703088639c8a4a74ecfb6325642e/slightly-hacky-local-testing.patch#L1-L26

Currently we apply this patch manually, which is error-prone and includes the not so nice possibility of committing that one.