summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/code/deploy.php
blob: 2eef4ba32c423b70a7bf6fadd8c1936a423fd5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

#system('cd /home/horus/app/gospeladlershof.de && make -s 2>&1 | mail -s "Hugo: gospeladlershof.de" status@iamfabulous.de', $retval);
system('cd /home/horus/app/gospeladlershof.de && make -s 2>&1', $retval);

header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect");
if ( 0 !== $retval ) {
	header("Location: /?deploy=0");
} else {
	header("Location: /?deploy=1");
}