- composer install … composer.lockを元にインストールする
- composer update … composer.jsonを元にupdateする
- composer.json … 入れたいもの
- composer.lock … パッケージ依存を解決した上での記録
もくじ
開発環境での初回
$ composer install
それ以降は
$ composer update
開発環境では
$ composer update
本番では
stagingのvendorを本番に複製する
or
composer.lockを本番にコミットした上で
$ composer install –no-dev
–no-devを必ずつけませう🐱

![[Resolved] ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve ecr registry auth: service call has been retried 3 time(s): RequestError: send request failed caused by: Post “https://api.ecr.ap-northeast-1.amazonaws.com/”: dial tcp 52.119.218.165:443: i/o timeout](https://www.yuulinux.tokyo/contents/wp-content/uploads/2017/04/aws_logo_smile_1200x630-150x150.png)