/** * Execute the console command. * * @return mixed */ public function handle() { $this->comment('Before creating the deploy package it is suggested that you compile production assets by running the "gulp --production" command.'); if ($this->confirm('Do you wish to continue? [y|N]')) { $this->warn('Optimizing app...'); $this->call('optimize', ['--force' => true]); $this->warn('Caching routes...'); $this->call('route:cache'); $this->comment('Creating the deploy package...'); $this->packager->createDeployPackage(); $this->info('Created the deploy package in the "backups" directory.' . PHP_EOL); } }
/** * Execute the console command. * * @return mixed */ public function handle() { $this->comment('Creating the backup...' . PHP_EOL); $this->packager->createBackup(); $this->info(trans('maintenance.created_backup') . PHP_EOL); }