Skip to content

Commit

Permalink
Fix internal:add-to-project. (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Dec 27, 2017
1 parent 8c54a5b commit 34ed984
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions readme/adding-to-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ Adding BLT to an existing project can be much more complex than simply creating
Prerequisites:

1. Ensure that your project directory structure is Acquia-cloud compatible by asserting that the Drupal root is in a top-level folder called `docroot`.
1. You must **already user Composer to manage site dependencies**. If you don't, please see [Using Composer to manage Drupal site dependencies](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies) and modify your project accordingly.
1. You must **already user Composer to manage site dependencies**. If you don't, please see [Using Composer to manage Drupal site dependencies](https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies) and modify your project accordingly.
1. Ensure that your dependencies are all up to date via `composer update`. Assert that these updates do not break your project.

To add BLT to a pre-existing Drupal project, do the following:

1. `cd` into your existing project directory.
1. Add BLT via composer:
2. Set Composer's `minimum-stability` to `dev` and `prefer-stable` to `true`:

composer config minimum-stability dev
composer config prefer-stable true

3. Add BLT via composer:

composer require acquia/blt:^8.3 --no-update
composer update

1. Continue following instructions for step 2 and beyond in [Creating a new project with BLT](../INSTALL.md#creating-a-new-project-with-blt).
4. Continue following instructions for step 2 and beyond in [Creating a new project with BLT](../INSTALL.md#creating-a-new-project-with-blt).
1 change: 1 addition & 0 deletions src/Robo/Commands/Blt/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function update() {
* @return \Robo\Result
*/
public function addToProject() {
$this->updateRootProjectFiles();
$this->reInstallComposerPackages();
$this->displayArt();
$this->yell("BLT has been added to your project.");
Expand Down

0 comments on commit 34ed984

Please sign in to comment.