This documentation page describes several common tasks that you will require as you use BLT on your local computer.
Prerequisites to installation:
Ensure that the
file exists by running the following command:
Verify that correct local database credentials are set in the
Ensure project dependencies have already been built running the following command:
To re-install Drupal, run the following command:
blt drupal:install command drops the existing database
tables, and then installs Drupal from scratch.
For information about managing core and contributed packages for your project, see Using Composer to manage dependencies.
For a detailed description of how to deploy to Cloud Platform, see Deployment workflow.
For information about running tests, see Automated testing.
To evaluate the project codebase with PHP_CodeSniffer and PHP lint, run the following command:
For information about compiling front-end assets and running front and build processes, see Front-end development and BLT.
The project is configured to update the local environment with a both local
Drush alias and a remote alias (as defined in
blt/local.yml). Due to the fact that these aliases match those in
drush/sites/, you can update the website with BLT.
The following command will ensure your local computer is synchronized with the remote environment:
This command will sync your website and run all necessary updates, including clearing the cache, database updates, and configuration imports.
By default, BLT does not sync your public and private files
directories. However, to perform a file sync during
tasks in your project, you can set
true in your
If you are using multisite, you can refresh every multisite on your local computer by running the following command:
The sync command copies a database (and files if
sync.files is set to
true) but does not run any updates afterward.
The previous command runs several update commands (including cache clears, database updates, and configuration imports) to sync the local database with your codebase (for example, an exported configuration).