# Drupal
# Local setup (DO)
- Clone the repo.
- Create and download a backup of the DB.
- [Optional] create and download tar archive of assets (bu)
- Start the server:
lando start - import the DB:
lando db-import dump-from-live.sql - Add the file
settings.phpwith lando's credentials to sites/default - Put the
.htaccessfile 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]