lila/bin/reload-clean
2012-06-17 13:25:58 +02:00

15 lines
388 B
PHP
Executable file

#!/usr/bin/env php
<?php
require_once __DIR__.'/base_script.php';
$testurl="http://en.lichess.org";
show_run("Stage", "$play clean compile stage");
show_run_catch("Stop", "$play stop");
show_run("Clear log", 'echo "" > logs/play.log');
show_run("Start", "./target/start > logs/play.log &");
sleep(3);
show_run("Testing $testurl", "curl -sILw \"%{http_code}\" -o /dev/null $testurl");