Signal trapping for easy shutdown without killing backend container
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Dominic Grimm 2022-02-25 13:02:03 +01:00
parent bb2e458ef0
commit 4f7489e207

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 %}