Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit 3b6ad7c

Browse files
Adds a flag to prevent database (& dotenv presumptions) (#12)
Co-authored-by: Ryan Chandler <[email protected]>
1 parent c655ddf commit 3b6ad7c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/Commands/DeployCommand.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class DeployCommand extends Command
3434
{--isolate : Enable site isolation.}
3535
{--ci : Add additional output for your CI provider.}
3636
{--no-quick-deploy : Create your site without "Quick Deploy".}
37-
{--no-deploy : Avoid deploying the site.}';
37+
{--no-deploy : Avoid deploying the site.}
38+
{--no-db : Avoid creating a database.}';
3839

3940
protected $description = 'Deploy a branch / pull request to Laravel Forge.';
4041

@@ -52,7 +53,9 @@ public function handle(Forge $forge)
5253

5354
$site = $this->findOrCreateSite($server);
5455

55-
$this->maybeCreateDatabase($server, $site);
56+
if (! $this->option('no-db')) {
57+
$this->maybeCreateDatabase($server, $site);
58+
}
5659

5760
if ($this->option('edit-env')) {
5861
$this->information('Updating environment variables');

0 commit comments

Comments
 (0)