Hi,
As part of the Bedrock install I needed to run composer create-project roots/bedrock
which generated the following output:
Installing roots/bedrock (1.8.8)
- Installing roots/bedrock (1.8.8): Downloading (100%)
Created project in C:\Users\Justin\Documents\bedrock
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Package operations: 8 installs, 0 updates, 0 removals
- Installing johnpbloch/wordpress-core-installer (1.0.0.2): Downloading (100%)
- Installing composer/installers (v1.5.0): Downloading (100%)
- Installing johnpbloch/wordpress-core (4.9.4): Downloading (100%)
- Installing johnpbloch/wordpress (4.9.4): Downloading (100%)
- Installing oscarotero/env (v1.1.0): Downloading (100%)
- Installing roots/wp-password-bcrypt (1.0.0): Downloading (100%)
- Installing vlucas/phpdotenv (v2.4.0): Downloading (100%)
- Installing squizlabs/php_codesniffer (3.2.2): Downloading (100%)
Generating autoload files
Then I created the recommended folder structure as instructed by https://github.com/roots/trellis.
After doing this successfully I pulled in Wordpress core using composer install
which generated the foloowing output:
PS C:\Users\Justin\Documents\Sites\test.com\site> composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update
hem.
Package operations: 8 installs, 0 updates, 0 removals
- Installing johnpbloch/wordpress-core-installer (1.0.0.2): Loading from cache
- Installing composer/installers (v1.5.0): Loading from cache
- Installing johnpbloch/wordpress-core (4.9.4): Loading from cache
- Installing johnpbloch/wordpress (4.9.4): Loading from cache
- Installing oscarotero/env (v1.1.0): Loading from cache
- Installing roots/wp-password-bcrypt (1.0.0): Loading from cache
- Installing vlucas/phpdotenv (v2.4.0): Loading from cache
- Installing squizlabs/php_codesniffer (3.2.2): Loading from cache
Generating autoload files
The question is, what is the difference between running composer create-project roots/bedrock
and composer install
?
It seems that both pull in wordpress core files but composer create-project roots/bedrock
installs roots bedrock and pulls in a “.env” file and composer install
does not install roots/bedrock and pulls in additional files.
Which method should I use to set up the initial recommended folder structure?
Thanks