diff --git a/mojotrollz/api/server/server.php b/mojotrollz/api/server/server.php index 44b569c..799777d 100644 --- a/mojotrollz/api/server/server.php +++ b/mojotrollz/api/server/server.php @@ -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(){