Created
May 27, 2016 14:08
-
-
Save johnnaegle/1b9b042867f3869d84c5440fb7cb45c0 to your computer and use it in GitHub Desktop.
restart puma before a deploy to free memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before 'deploy:started', "puma:phased-restart" | |
after 'deploy:started', 'reenable_phased_restart' | |
task :reenable_phased_restart do | |
::Rake.application['puma:phased-restart'].reenable | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment