|
1 |
| -# Usage: drupal site:rebuild --placeholder="name:subscriptions" |
| 1 | +# Usage: drupal site:rebuild --placeholder="name:subscriptions" --placeholder="root:\/vagrant\/repos" |
2 | 2 | command:
|
3 | 3 | name: site:rebuild
|
4 |
| - description: 'Performs multiple commands to build a site (without git checkout)' |
| 4 | + description: 'Peforms necessary steps to build the site from a given source.' |
5 | 5 | commands:
|
6 |
| -# Run composer |
7 |
| - - command: site:compose |
8 |
| - arguments: |
9 |
| - name: '%{{name}}' |
10 |
| -# Run npm |
11 |
| - - command: site:npm |
| 6 | +# Compile the packages. |
| 7 | + - command: site:compile |
12 | 8 | options:
|
13 | 9 | placeholder:
|
14 | 10 | - 'name:%{{name}}'
|
15 |
| -# Run grunt |
16 |
| - - command: site:grunt |
| 11 | + - 'root:%{{root|\/vagrant\/repos}}' |
| 12 | +# Generate the settings. |
| 13 | + - command: site:configure |
17 | 14 | options:
|
18 | 15 | placeholder:
|
19 | 16 | - 'name:%{{name}}'
|
20 |
| -# Create settings.db.php |
21 |
| - - command: site:settings:db |
22 |
| - arguments: |
23 |
| - name: '%{{name}}' |
24 |
| -# Create settings.local.php |
25 |
| - - command: site:settings:local |
26 |
| - arguments: |
27 |
| - name: '%{{name}}' |
28 |
| -# Create phpunit.xml |
29 |
| - - command: site:phpunit:setup |
30 |
| - arguments: |
31 |
| - name: '%{{name}}' |
32 |
| -# Create behat.yml |
33 |
| - - command: site:behat:setup |
34 |
| - arguments: |
35 |
| - name: '%{{name}}' |
36 |
| -# Create settings.memcache.php |
37 |
| - - command: site:settings:memcache |
38 |
| - arguments: |
39 |
| - name: '%{{name}}' |
40 | 17 | # Imports db or installs a site
|
41 | 18 | - command: site:db:import
|
42 | 19 | arguments:
|
43 | 20 | name: '%{{name}}'
|
44 |
| -# Clear cache |
45 |
| - - command: exec |
46 |
| - arguments: |
47 |
| - bin: 'cd /vagrant/repos/%{{name}}/web; drush cr;' |
48 |
| -# Set default drush alias |
49 |
| - - command: exec |
50 |
| - arguments: |
51 |
| - bin: 'cd /vagrant/repos/%{{name}}/web; drush site-set @vm;' |
52 |
| -# Run db updates |
53 |
| - - command: exec |
54 |
| - arguments: |
55 |
| - bin: 'cd /vagrant/repos/%{{name}}/web; drush updb -y;' |
56 |
| -# Import configuration twice to fix a problem with config import when new modules are added to core.extensions.yml |
57 |
| - - command: exec |
58 |
| - arguments: |
59 |
| - bin: 'cd /vagrant/repos/%{{name}}/web; drush cim -y;drush cim -y' |
60 |
| -# Clear cache |
61 |
| - - command: exec |
62 |
| - arguments: |
63 |
| - bin: 'cd /vagrant/repos/%{{name}}/web; drush cr;' |
| 21 | +# Build the site based on existing setup. |
| 22 | + - command: site:construct |
| 23 | + options: |
| 24 | + placeholder: |
| 25 | + - 'name:%{{name}}' |
| 26 | + - 'root:%{{root|\/vagrant\/repos}}' |
0 commit comments