Skip to content

Instantly share code, notes, and snippets.

@redleafar
Created February 25, 2017 23:32
Show Gist options
  • Save redleafar/368798295d42e34f436bbcae33c0632c to your computer and use it in GitHub Desktop.
Save redleafar/368798295d42e34f436bbcae33c0632c to your computer and use it in GitHub Desktop.
Composer update killed in VPS

http://stackoverflow.com/questions/20667761/composer-killed-while-updating

What you should do is:

Run composer update in a local environment

Upload/git push the composer.lock file

Run composer install on the live server

composer install will read from the .lock file fetching the exact same versions every time rather than finding the latest versions of every package. This makes your app less likely to break, and composer uses less memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment