-
Notifications
You must be signed in to change notification settings - Fork 310
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
Pusher being run at Laravel package:discover resulting in Argument Error #373
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you. |
Please keep this issue open, I think it is a valid question
|
I've just encountered the same problem. Seems a straightforward question, strange not to get an answer. |
I have added the following code to my Dockerfile:
This circumvents the problem but it would still be nice to have a response from the project owners about why this is necessary at all. |
Ah, good workaround, thanks for sharing! |
I got same problem here, can't install project because of it |
I believe this is a result of the integration of Pusher (specifically this library) into the Laravel framework. You can prevent a library from being discovered with the below:
|
In my Dockerfile I have a step that installs Composer packages. After the installs are complete an
artisan package:discover
automatically executes and this errors out because Pusher can't find environment variables that it needs.Why does Pusher actually get run by the
package:discover command
? Could I prefix the step in my Dockerfile with some 'temporary' env variables to get the build to succeed e.g.PUSHER_APP_KEY=foo PUSHER_APP_SECRET=bar composer install
? Would this present any problems when I later to come set the actual values that I want when running the image as a container?Cheers!
composer.json
Terminal Output
The text was updated successfully, but these errors were encountered: