info('Running auto deployment'); $this->call('down'); // Exec commands exec('git pull origin ' . config('app.deploy_branch')); //exec('composer update --no-interaction --prefer-dist'); $this->migrateDatabase(); // Stop deployment $this->call('up'); $this->info('Everything is done, congratulations! 🥳🥳🥳'); Log::info('Application was updated!'); } /** * Migrate database */ public function migrateDatabase() { $this->call('migrate', [ '--force' => true, ]); } }