Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 03f5422

Browse files
committed
Add app.reload task
Which reloads an app gracefully. Ruby apps which use unicornherder while start a new set of workers and transition over to them within a couple of minutes.
1 parent e7f7f10 commit 03f5422

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22

33
@task
44
def restart(app):
5-
"""Restart a particular app"""
5+
"""Restart (hard) a particular app"""
66
sudo("service %s restart" % app)
7+
8+
@task
9+
def reload(app):
10+
"""Reload (graceful) a particular app"""
11+
sudo("service %s reload" % app)

0 commit comments

Comments
 (0)