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

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

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