Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion targets/drupal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ Or, you can specify the export file directly:
<composer command="require" composer="${composer.composer}">
<arg value="drupal/admin_toolbar" />
<arg value="drupal/config_split" />
<arg value="drupal/config_ignore" />
<arg value="drupal/devel" />
<arg value="drupal/workbench" />
<arg value="drupal/workbench_tabs" />
Expand Down
12 changes: 11 additions & 1 deletion targets/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@
<!-- The one that's available is the location we're moving from. -->
<available file="${build.dir}/web/core" type="dir" property="drupal.root.old" value="web" />
<available file="${build.dir}/docroot/core" type="dir" property="drupal.root.old" value="docroot" />
<available file="${build.dir}/${drupal.root.old}/sites/default/settings.ddev.php" type="file" property="ddev_settings_exists" value="true" />

<!-- Copy settings.ddev.php if it doesn't exist in the old drupal root. -->
<if>
<not><equals arg1="${ddev_settings_exists}" arg2="1" /></not>
<then>
<echo msg="Copying settings.ddev.php to old drupal root." />
<exec command="cp ${drupal.root}/sites/default/settings.ddev.php ${drupal.root.old}/sites/default" dir="${build.dir}" checkreturn="true" logoutput="true" />
</then>
</if>

<echo msg="Moving the ${drupal.root.old}/ directory to ${drupal.root}/" />
<exec command="rm -rf ${drupal.root}" dir="${build.dir}" />
Expand Down Expand Up @@ -169,7 +179,7 @@
<!-- Target: setup-templates -->
<target name="setup-templates" depends="set-site">
<!-- Set the project name in the ddev config. -->
<replaceregexp match="name: .*" replace="name: ${projectname}" file=".ddev/config.yaml" />
<replaceregexp match="name: .*" replace="name: ${projectname}" file="${application.startdir}/.ddev/config.yaml" />

<!-- Copy the build file template.

Expand Down