make deployments synchronous
This commit is contained in:
parent
911c261d73
commit
f3093ed1ff
|
@ -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 {}
|
||||
|
|
Reference in New Issue