Commit 6258260 Jan
authored
1 parent 03ee630 commit 6258260 Copy full SHA for 6258260
File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class PublishCommand extends Command
28
28
public function handle ()
29
29
{
30
30
$ this ->call ('vendor:publish ' , ['--tag ' => 'sail-docker ' ]);
31
+ $ this ->call ('vendor:publish ' , ['--tag ' => 'sail-database ' ]);
31
32
32
33
file_put_contents (
33
34
$ this ->laravel ->basePath ('docker-compose.yml ' ),
@@ -36,11 +37,15 @@ public function handle()
36
37
'./vendor/laravel/sail/runtimes/8.2 ' ,
37
38
'./vendor/laravel/sail/runtimes/8.1 ' ,
38
39
'./vendor/laravel/sail/runtimes/8.0 ' ,
40
+ './vendor/laravel/sail/database/mysql ' ,
41
+ './vendor/laravel/sail/database/pgsql '
39
42
],
40
43
[
41
44
'./docker/8.2 ' ,
42
45
'./docker/8.1 ' ,
43
46
'./docker/8.0 ' ,
47
+ './docker/mysql ' ,
48
+ './docker/pgsql '
44
49
],
45
50
file_get_contents ($ this ->laravel ->basePath ('docker-compose.yml ' ))
46
51
)
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ protected function configurePublishing()
52
52
$ this ->publishes ([
53
53
__DIR__ . '/../bin/sail ' => $ this ->app ->basePath ('sail ' ),
54
54
], ['sail ' , 'sail-bin ' ]);
55
+
56
+ $ this ->publishes ([
57
+ __DIR__ . '/../database ' => $ this ->app ->basePath ('docker ' ),
58
+ ], ['sail ' , 'sail-database ' ]);
55
59
}
56
60
}
57
61
You can’t perform that action at this time.
0 commit comments