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

system('cd /home/horus/sites/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");
}