Creating a new project with BLT¶
Please do not clone BLT or BLT Project as a means of using them. Just follow the directions below.
Create a new project with the commands below. It will create the necessary directories and download all dependencies. Do not run these commands inside of an existing git repository. Replace
MY_PROJECTin the commands below with the desired name of your new project directory.
composer clear-cache export COMPOSER_PROCESS_TIMEOUT=2000 composer create-project --no-interaction acquia/blt-project my-project cd my-project
bltalias and follow on-screen instructions:
composer run-script blt-alias source ~/.bash_profile
By default, BLT will use the
lightningprofile, other valid values are
Now its time to spin up your LAMP stack.
With Drupal VM: If you would like to use Drupal VM for local development, run the following commands:
Without Drupal VM: If you would not like to use Drupal VM, please review Local Development and set up your own LAMP stack. Once your LAMP stack is running, execute the following command to generate default local settings files:
Modify the generated
docroot/sites/default/settings/local.settings.phpfile by adding your custom MySql credentials.
Execute the following command to complete setup:
This will generate all required files and install Drupal.
Login to Drupal
drush @[project.machine_name].local uli, where [project.machine_name] is the value that you set in project.yml.
See Next steps.