added script to restart server

pull/1/head
ppaulis 2016-11-02 10:45:41 +01:00
parent 7ef826afbb
commit 1c0831ab6e
2 changed files with 6 additions and 1 deletions

View File

@ -3,3 +3,5 @@ deployment:
hooks: hooks:
AfterInstall: AfterInstall:
- command: scripts/migrate.sh - command: scripts/migrate.sh
AfterActivate:
- command: scripts/restart-server.sh

3
scripts/restart-server.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
service apache2 restart > /dev/null 2>&1 &
service php7.0-fpm restart > /dev/null 2>&1 &