Skip to content

Commit

Permalink
Update failure advice
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Apr 29, 2021
1 parent 28bd3a8 commit 1b05631
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions modules/system/console/OctoberBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class OctoberBuild extends Command
public function handle()
{
$this->output->section('Installing Dependencies');

$this->setupInstallOctober();

$this->outputOutro();
Expand Down
19 changes: 12 additions & 7 deletions modules/system/console/OctoberInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ protected function setupLicenseKey()
try {
$this->setupSetProject($licenceKey);

$this->output->success('Thank you for being a customer of October CMS!');
$this->output->success('Thanks for being a customer of October CMS!');
}
catch (Exception $ex) {
$this->output->error($ex->getMessage());
Expand Down Expand Up @@ -336,8 +336,6 @@ protected function setupMigrateDatabase()
// }
}



/**
* outputFailedOutro displays the failure message
*/
Expand All @@ -347,10 +345,17 @@ protected function outputFailedOutro()

$this->output->error('Please try running these commands manually');

$this->output->listing([
'composer require ' . $this->composerRequireString($this->option('want') ?: null),
'php artisan october:migrate'
]);
$commands = [];
$commands[] = 'php artisan project:set <license key>';

if ($want = $this->option('want')) {
$commands[] = 'php artisan october:build --want='.$want;
}
else {
$commands[] = 'php artisan october:build';
}

$this->output->listing($commands);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion modules/system/console/ProjectSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function handle()
try {
$this->setupSetProject($licenceKey);

$this->output->success('Thank you for being a customer of October CMS!');
$this->output->success('Thanks for being a customer of October CMS!');
}
catch (Exception $e) {
$this->output->error($e->getMessage());
Expand Down

0 comments on commit 1b05631

Please sign in to comment.