We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b84953d commit 7c230aaCopy full SHA for 7c230aa
src/Commands/DeploymentScriptCommand.php
@@ -13,9 +13,11 @@ class DeploymentScriptCommand extends Command
13
14
public function handle(): int
15
{
16
- if (config('deployment-script.allow_in_production', false)) {
17
- $this->error("Deploy Script is not allow in Production Environment");
18
- return self::FAILURE;
+ if (app()->isProduction()) {
+ if (config('deployment-script.allow_in_production', false)) {
+ $this->error("Deploy Script is not allow in Production Environment");
19
+ return self::FAILURE;
20
+ }
21
}
22
23
foreach ($this->getCommands() as $command) {
0 commit comments