crunchbutton/deploy/chat.php
2014-11-14 10:35:30 -08:00

15 lines
248 B
PHP

<?php
include(dirname(__FILE__).'/gitupdate.php');
echo "\nRestarting services...\n";
$cmds = [
'service nginx restart',
'service chat restart'
];
foreach ($cmds as $cmd) {
$o = null;
exec($cmd.' 2>&1 &', $o);
echo implode("\n", $o)."\n";
}