server deploy in php
This commit is contained in:
parent
00142f2693
commit
3cc295a6b5
@ -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(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user