From 1c0831ab6e9bafb9b55230eaab8ebd3d7c744d68 Mon Sep 17 00:00:00 2001 From: ppaulis Date: Wed, 2 Nov 2016 10:45:41 +0100 Subject: [PATCH] added script to restart server --- continuous.yml | 4 +++- scripts/restart-server.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 scripts/restart-server.sh diff --git a/continuous.yml b/continuous.yml index 9b5d112..98c8870 100644 --- a/continuous.yml +++ b/continuous.yml @@ -2,4 +2,6 @@ deployment: hooks: AfterInstall: - - command: scripts/migrate.sh \ No newline at end of file + - command: scripts/migrate.sh + AfterActivate: + - command: scripts/restart-server.sh \ No newline at end of file diff --git a/scripts/restart-server.sh b/scripts/restart-server.sh new file mode 100755 index 0000000..c8c34b7 --- /dev/null +++ b/scripts/restart-server.sh @@ -0,0 +1,3 @@ +#!/bin/bash +service apache2 restart > /dev/null 2>&1 & +service php7.0-fpm restart > /dev/null 2>&1 &