decoupling-drupal-vuejs/drupal/.docksal/commands/init

38 lines
1 KiB
Plaintext
Raw Normal View History

2019-06-05 18:35:24 +00:00
#!/usr/bin/env bash
## Initialise the project
##
## Usage: fin init
fin start
fin run composer install
2019-06-05 20:01:21 +00:00
# Overwrite settings.php.
cp ../files/settings.php ../../web/sites/default
2019-06-05 18:35:24 +00:00
fin drush site:install -y
# Reset the site uuid.
fin drush config:set -y system.site uuid de7ba5dc-5795-4cb5-9d38-1edcc27be491
# Delete the uuid for shortcut.set.default so that config will import.
fin drush config:delete -y shortcut.set.default uuid
# Import config.
fin drush config:import -y --source=../config/sync
fin drush php:eval '\Drupal::service("Drupal\dtc_import\Service\Importer\CsvSpeakerImporter")->import()'
fin drush php:eval '\Drupal::service("Drupal\dtc_import\Service\Importer\CsvSessionImporter")->import()'
fin drush user:create api --password=api
fin drush user:role:add api_user api
2019-06-05 19:34:25 +00:00
# Set uuid for admin user.
fin drush sql:query "UPDATE users SET uuid = '11dad4c2-baa8-4fb2-97c6-12e1ce925806' WHERE uid = 1"
# Set uuid for API user.
fin drush sql:query "UPDATE users SET uuid = '63936126-87cd-4166-9cb4-63b61a210632' WHERE uid = 7"
2019-06-05 18:35:24 +00:00
fin uli