Do the custom command like https://github.com/Md5Inj/MageGo/issues/7 But if setup:upgrade will fail - di:compile will run and then should be runned common flow - upgrade, di:compile
Do the custom command like #7
But if setup:upgrade will fail - di:compile will run and then should be runned common flow - upgrade, di:compile