mariusbalcytis / webpack-bundle

Bundle to Integrate Webpack into Symfony
MIT License
122 stars 36 forks source link

maba webpack causing tty issue on AWS #23

Closed lakhman closed 7 years ago

lakhman commented 8 years ago

I'm using code deploy to deploy an app to AWs, I get a bunch of:

PHP Warning: proc_open(/dev/tty): failed to open stream: No such device or address in

I needed this:

parameters:
    # Disable TTY in webpack bundle
    maba_webpack.bin.disable_tty: true

Please add this to the docs when you get a chance, I found it looking through the test files.

Thanks!

mariusbalcytis commented 7 years ago

Strange that functionality in Symfony\Process does not handle this - TTY mode should not be set where it's unavailable. Probably hard to tell in some circumstances if it will be available.

I've added config.yml entry for that and disabled it by default in production - I don't think that it's really needed there, as prod should be only used in deployment scripts.