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
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: mentorenwahl/mentorenwahl#68
This commit is contained in:
commit
6beaf1817f
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue