php – mitchmac.com https://www.mitchmac.com Fri, 24 Mar 2017 16:41:22 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.2 What to do when your Internet is too slow for composer? https://www.mitchmac.com/internet-slow-composer/ https://www.mitchmac.com/internet-slow-composer/#respond Fri, 24 Mar 2017 14:51:27 +0000 https://www.mitchmac.com/?p=54 Like the problems I was having with Docker timeouts, I recently had problems on my slow home Internet getting PHP’s composer to build the assets for a project. The error message contained “exceeded the timeout of 300 seconds” so it was easy to identify. The fix, run from the terminal was: export COMPOSER_PROCESS_TIMEOUT=1500 Where the … Continue reading "What to do when your Internet is too slow for composer?"

The post What to do when your Internet is too slow for composer? appeared first on mitchmac.com.

]]>
Like the problems I was having with Docker timeouts, I recently had problems on my slow home Internet getting PHP’s composer to build the assets for a project.

The error message contained “exceeded the timeout of 300 seconds” so it was easy to identify.

The fix, run from the terminal was:

export COMPOSER_PROCESS_TIMEOUT=1500

Where the number is the number of seconds before a composer operation timesout.  This fix is temporary, for a permanent solution have a look at how to make environment variables persist.

The post What to do when your Internet is too slow for composer? appeared first on mitchmac.com.

]]>
https://www.mitchmac.com/internet-slow-composer/feed/ 0