Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreySavenkov committed May 31, 2021
1 parent b18b571 commit 2ef8782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/SailInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected function buildDockerCompose(array $services)
})->implode("\n");

$stubs = rtrim(collect($services)->map(function ($service) {
return file_get_contents(__DIR__ . "/../../stubs/{$service}.stub");
return file_get_contents($this->laravel->basePath("vendor/laravel/sail/stubs/{$service}.stub"));
})->implode(''));

$volumes = collect($services)
Expand All @@ -91,7 +91,7 @@ protected function buildDockerCompose(array $services)
return $collection->prepend('volumes:');
})->implode("\n");

$dockerCompose = file_get_contents(__DIR__ . '/../../stubs/docker-compose.stub');
$dockerCompose = file_get_contents($this->laravel->basePath('vendor/laravel/sail/stubs/docker-compose.stub'));

$dockerCompose = str_replace('{{depends}}', empty($depends) ? '' : ' '.$depends, $dockerCompose);
$dockerCompose = str_replace('{{services}}', $stubs, $dockerCompose);
Expand Down
1 change: 1 addition & 0 deletions src/SailLumenServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class SailLumenServiceProvider extends ServiceProvider
*/
protected $commands = [
'SailInstall' => 'command.sail.install',
'SailPublish' => 'command.sail.publish',
'Serve' => 'command.serve',
];

Expand Down

0 comments on commit 2ef8782

Please sign in to comment.