forked from LiveCarta/LiveCartaWP
LAW-2819
This commit is contained in:
37
build/build.xml
Normal file
37
build/build.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="LawCarta wordpress project" default="build-without-tests">
|
||||
|
||||
<target name="build-without-tests"
|
||||
depends="composer_install, replace, archive"
|
||||
description="Build project and run all tests"/>
|
||||
|
||||
<target name="replace"
|
||||
unless="replace.done"
|
||||
description="Replace placeholders in config files" >
|
||||
|
||||
<replace dir="../environments" token="@lcWpMySqlHostDev@" value="${lcWpMySqlHostDev}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlDbnameDev@" value="${lcWpMySqlDbnameDev}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlUsernameDev@" value="${lcWpMySqlUsernameDev}"/>
|
||||
<replace dir="../environments" token="@lcWpMySqlPasswordDev@" value="${lcWpMySqlPasswordDev}"/>
|
||||
|
||||
<property name="replace.done" value="true"/>
|
||||
</target>
|
||||
|
||||
<target name="composer_install">
|
||||
<exec dir="${basedir}/.." executable="composer" failonerror="true">
|
||||
<arg line="install" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="archive">
|
||||
<tar compression="gzip" destfile="lc_wp.tar.gz">
|
||||
<tarfileset dir="${basedir}/..">
|
||||
<include name="*/**" />
|
||||
<exclude name="build/**" />
|
||||
<exclude name="vendor/**" />
|
||||
</tarfileset>
|
||||
</tar>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
||||
12
environments/testdev/wp-config-local.php
Normal file
12
environments/testdev/wp-config-local.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
define( 'DB_NAME', '@lcWpMySqlDbnameDev@' );
|
||||
define( 'DB_USER', '@lcWpMySqlUsernameDev@' );
|
||||
define( 'DB_PASSWORD', '@lcWpMySqlPasswordDev@' );
|
||||
define( 'DB_HOST', '@lcWpMySqlHostDev@' );
|
||||
|
||||
define('DOMAIN_CURRENT_SITE', 'dev1.lawcarta.loc');
|
||||
|
||||
define('LAWCARTA_SUBDOMAIN', 'app-dev1');
|
||||
define('LAWCARTA_PORT', '');
|
||||
|
||||
Reference in New Issue
Block a user