mahdiraad / lumen-sail

Installing Laravel Sail Package in Lumen
MIT License
4 stars 6 forks source link

cannot find docker-compose.yml #2

Open amenk opened 2 years ago

amenk commented 2 years ago

With these versions:

    "laravel/lumen-framework": "^8.3.1",
    "mahdiraad/lumen-sail": "dev-master"

on PHP8

 Do you want to run "sail:install" instead?  (yes/no) [no]:
 > yes

In SailInstallCommand.php line 40:

  copy(/home/me/mine/workspace/discover/vendor/laravel/sail/stubs/docker-compose.yml): failed to open stream: No such file or directory  

Looks like sail ships now with a docker-compose.stub

Simply changing the path in

vendor/mahdiraad/lumen-sail/src/Console/Commands/SailInstallCommand.php:40

to

    copy(base_path('vendor/laravel/sail/stubs/docker-compose.stub'), base_path('docker-compose.yml'));

does not help:

$ vendor/bin/sail up
ERROR: yaml.scanner.ScannerError: while scanning a simple key
  in "./docker-compose.yml", line 24, column 1
could not find expected ':'
  in "./docker-compose.yml", line 25, column 1
ERROR: yaml.scanner.ScannerError: while scanning a simple key
  in "./docker-compose.yml", line 24, column 1
could not find expected ':'
  in "./docker-compose.yml", line 25, column 1
ERROR: yaml.scanner.ScannerError: while scanning a simple key
  in "./docker-compose.yml", line 24, column 1
could not find expected ':'
  in "./docker-compose.yml", line 25, column 1
amenk commented 2 years ago

trying https://github.com/AndreySavenkov/sail-lumen :-)