Skip to content

Commit

Permalink
Merge pull request #21 from n0n0x/upstart-supervisor-implementations
Browse files Browse the repository at this point in the history
Declare upstart and supervisor services and reload upstart
  • Loading branch information
n0n0x authored Aug 18, 2016
2 parents 571858b + 55b47da commit ed8fd28
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deployer/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
env.app_name = environ.get('APP_NAME')
env.app_dir = '/var/local/apps/{}'.format(environ.get('APP_NAME'))
env.repo_url = environ.get('APP_REPO_URL')

env.supervisor_services = environ.get('SUPERVISOR_SERVICES', '').split(',')
env.upstart_services = environ.get('UPSTART_SERVICES', '').split(',')
3 changes: 3 additions & 0 deletions deployer/tasks/service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from fabric.api import sudo
from fabtools import service

def stop(component):
Expand All @@ -15,3 +16,5 @@ def restart(component):
def reload(component):
service.reload(component)

def upstart_reload():
sudo('initctl reload-configuration')
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name="deployer",
version="0.1.2",
version="1.0.1",
description="Streema deployer library",
long_description=readme,
author="Streema Devs",
Expand Down

0 comments on commit ed8fd28

Please sign in to comment.