kanopi / saplings

Drupal recipe to start a build project. Designed to work well with kanopi/drupal-starter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update README for installation steps

thejimbirch opened this issue · comments

For best practices, this:

  1. Moves custom module and theme to the correct folders.
  2. Installs Drupal.
  3. Creates User 2 and 3 with admin and editor roles.
  4. Blocks User 1.
  5. Applies recipes.
# Copy custom modules to the correct place.
cp -R web/themes/contrib/saplings_child web/themes/custom/
cp -R web/modules/contrib/saplings_custom web/modules/custom/

# Install Drupal.
fin drush site-install minimal -y --site-name="Saplings" --account-name=admin --account-mail=fakeemail@example.com --site-mail=fakemail@example.com

# Create a new user and block user 1.
fin drush user-create exampleadmin --mail=fakeemail2@example.com
fin drush user-block admin -y

# Apply recipes.
fin recipe-apply saplings
fin recipe-apply saplings-events

# Add role to user 2.
fin drush user-add-role administrator exampleadmin

# Create a Content editor, User 3.
fin drush user-create exampleeditor --mail=fakemail3@example.com
fin drush user-add-role content_editor exampleeditor

# Clear cache.
fin drush cr