We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ceeb49 commit 6d9315dCopy full SHA for 6d9315d
1 file changed
app/Console/Commands/AppDeployFiles.php
@@ -87,6 +87,8 @@ public function handle()
87
exec("sed -i 's*$search*$replace*g' $file");
88
});
89
90
+
91
+ $this->createSupervisorDirectory();
92
}
93
94
/**
@@ -115,4 +117,18 @@ private function setAppsConfigs()
115
117
'SERVER_USER',
116
118
]);
119
120
121
+ /**
122
+ * Create supervisor log directory for the application.
123
+ *
124
+ * Creates a subdirectory under /var/log/supervisor using the application tag
125
+ * from configuration. Uses sudo to ensure proper permissions.
126
+ */
127
+ private function createSupervisorDirectory(): void
128
+ {
129
+ $logDir = '/var/log/supervisor';
130
+ $appTag = config('app.tag');
131
+ $appLogDir = "{$logDir}/{$appTag}";
132
+ exec("sudo mkdir -p {$appLogDir}");
133
+ }
134
0 commit comments