Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.91 KB

local-setup.md

File metadata and controls

37 lines (30 loc) · 1.91 KB

Setup Local Environment

Native LAMP Stack

BLT provides an automation layer for testing, building, and launching Drupal 8 applications. For ease when updating codebase it is recommended to use Drupal VM. If you prefer, you can use another tool such as Docker, DDEV, Docksal, Lando, (other) Vagrant, or your own custom LAMP stack, however support is very limited for these solutions.

  1. After cloning the repository setup blt settings
  • Copy the file blt/example.local.blt.yml and name it local.blt.yml. Populate all available information with your local configuration values.
  1. Install Composer dependencies.
  • After you have cloned the project and setup your local.blt.yml file install Composer Dependencies. (Warning: this can take some time based on internet speeds.)
    $ composer install
    
  1. Setup a local blt alias:
  • The easiest is to install it globally 1 time: `composer global require acquia/blt-launcher:*
  • Alternatively, Running BLT using vendor/bin/blt is possible.
  1. Setup Local settings After you have the local.blt.yml file configured, set up the settings.php for you setup.
    $ blt blt:init:settings
    

Optional: If you wish to not provide statistics and user information back to Acquia run ``` $ blt blt:telemetry:disable --no-interaction

Connecting Frontend

The front repository is https://github.com/SU-SWS/sulgryphon-nextjs. Clone the repo into a desired location. run the command blt gryphon:connect-nextjs [path-to-frontend-dir] [drupal-backend-domain]. This command will create the NextJS entities and configurations as well as establish the NextJS environment variables necessary to connect to the Drupal backend.