Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03f5422

Browse files
committed
Add app.reload task
Which reloads an app gracefully. Ruby apps which use unicornherder whilestart a new set of workers and transition over to them within a couple ofminutes.
1 parente7f7f10 commit03f5422

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
defrestart(app):
5-
"""Restart a particular app"""
5+
"""Restart(hard)a particular app"""
66
sudo("service %s restart"%app)
7+
8+
@task
9+
defreload(app):
10+
"""Reload (graceful) a particular app"""
11+
sudo("service %s reload"%app)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp