File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,12 @@ class SailEnvCommand extends Command
32
32
*/
33
33
public function handle ()
34
34
{
35
+ if (! file_exists ($ this ->laravel ->basePath ('docker-compose.yml ' ))) {
36
+ $ this ->error ('docker-compose.yml not found. Please run "php artisan sail:install" first. ' );
37
+
38
+ return 1 ;
39
+ }
40
+
35
41
if ($ this ->option ('overwrite ' )) {
36
42
$ this ->comment ('Overwriting environment variables ' );
37
43
$ this ->createEnvFile ();
@@ -43,12 +49,6 @@ public function handle()
43
49
$ this ->createEnvFile ();
44
50
}
45
51
46
- if (! file_exists ($ this ->laravel ->basePath ('docker-compose.yml ' ))) {
47
- $ this ->error ('docker-compose.yml not found. Please run "php artisan sail:install" first. ' );
48
-
49
- return 1 ;
50
- }
51
-
52
52
$ services = $ this ->getServicesFromCompose ();
53
53
54
54
$ this ->comment ('Detected services from docker-compose.yml: [ ' .implode (', ' , $ services ).'] ' );
You can’t perform that action at this time.
0 commit comments