server deploy in php

This commit is contained in:
Ulf Gebhardt 2015-01-03 22:27:22 +01:00
parent 00142f2693
commit 3cc295a6b5

View File

@ -3,7 +3,25 @@ class server {
public static function compile(){
return shell_exec('/home/mojotrolls/mojo_zero/compile 2>&1');}
public static function deploy(){
return shell_exec('/home/mojotrolls/mojo_zero/deploy 2>&1');}
# shutdown
realm::stop();
world::stop();
# pull database
database::pull();
# compile
self::compile();
# extractors
# push database
database::push();
# startup
world::start();
realm::start();
}
public static function revert(){
return shell_exec('/home/mojotrolls/mojo_zero/revert 2>&1');}
public static function rights(){