Merge pull request 'Signal trapping for easy shutdown without killing backend container' (#68) from signal-trap-docker into main
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: mentorenwahl/mentorenwahl#68
This commit is contained in:
Dominic Grimm 2022-02-25 14:13:08 +00:00
commit 6beaf1817f

View file

@ -35,6 +35,9 @@ module Backend
# Run the backend
def run : self
Signal::INT.trap { exit }
Signal::TERM.trap { exit }
{% if flag?(:development) %}
Log.warn { "Backend is running in development mode! Do not use this in production!" }
{% end %}