make deployments synchronous

This commit is contained in:
Benjamin Dauvergne 2013-11-21 15:39:46 +01:00
parent 911c261d73
commit f3093ed1ff
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ from .deploy import DeployInstance
def create(request):
data = json.loads(request.body)
deploy = DeployInstance(**data)
threading.Thread(target=deploy.make).start()
deploy.make()
return {}
@ -28,5 +28,5 @@ def update(request, instance):
if data.get('domain') != instance:
raise Exception('domain mismatch') # -> should remove/add ?
deploy = DeployInstance(**data)
threading.Thread(target=deploy.make).start()
deploy.make()
return {}