We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd46f11 + b822f3a commit dede4bcCopy full SHA for dede4bc
src/Robo/RoboFileAbstract.php
@@ -176,6 +176,12 @@ protected function updateEnvFile($doUpdate = false)
176
}
177
178
179
+ foreach ($this->getPromptedEnvValues() as $key => $prompt) {
180
+ if (empty($env[$key])) {
181
+ $additions[$key] = $this->ask($prompt);
182
+ }
183
184
+
185
if (!empty($additions)) {
186
$content = file_get_contents($envPath);
187
@@ -367,4 +373,9 @@ protected function getWritableDirectories($projectName)
367
373
'/var/log/' . $projectName . '/error',
368
374
];
369
375
376
377
+ protected function getPromptedEnvValues(): array
378
+ {
379
+ return [];
380
370
381
0 commit comments