Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

artisan package:discover handling the post-autoload-dump event returned with error code 1 #7

Closed
jerry80409 opened this issue Nov 15, 2017 · 1 comment
Assignees

Comments

@jerry80409
Copy link

Hi,
This is my env,

composer --version
Composer version 1.5.2 2017-09-11 16:59:25
php --version
PHP 7.1.11 (cli) (built: Oct 27 2017 11:00:43) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

After run composer install, I got a exception info:

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

  [Exception]
  It is unsafe to run Dusk in production.

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

I have no idea this exception, but the game still work.
It is pretty cool.

@mchekin
Copy link
Owner

mchekin commented Nov 28, 2017

@jerry80409
Thank you!

And thank you for pointing out the problem!

I was able to reproduce the Exception. The problem is with the order of the installation steps as they are written in the Readme. Copying .env.example into .env should happen before running "composer install".
Here is the fix #8

@mchekin mchekin closed this as completed Nov 28, 2017
@mchekin mchekin self-assigned this Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants