# Drupal

# Local setup (DO)

  1. Clone the repo.
  2. Create and download a backup of the DB.
  3. [Optional] create and download tar archive of assets (bu)
  4. Start the server: lando start
  5. import the DB: lando db-import dump-from-live.sql
  6. Add the file settings.php with lando's credentials to sites/default
  7. Put the .htaccess file into the root of the site

# Login to Drupal site

Drupal 7: http://yourdomain.com/?q=user

Drupal 8: https://yourdomain.com/user/login/

# Development assets and locations

CSS: sites/all/themes/theme_name/scss

Views: sites/all/themes/theme_name/templates/

Match the corresponding view in the CMS:

Structure > Views > Choose the View

# Drupal Cache

Drupal compiles CSS and JS through it's own cache known as drush.

See the following to clear the cache from the terminal. Prefix with lando if using locally.

Drupal 7 and 8: drush cache:clear

Drupal 9: drush cache-rebuild

Changes still not showing?

In the CMS, Performance > Cache > [Clear all caches]