Skip to content

Commit d622e8f

Browse files
committed
Merge pull request alphagov#5 from alphagov/restart-app
Add a Fabric command to restart a single app.
2 parents 52ccae2 + b082b51 commit d622e8f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from fabric.api import *
2+
3+
@task
4+
def restart(app):
5+
"""Restart a particular app"""
6+
sudo("service %s restart" % app)

fabfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from fabric.task_utils import crawl
1111

1212
# Our command submodules
13+
import app
1314
import apt
1415
import cache
1516
import licensify

0 commit comments

Comments
 (0)