This commit is contained in:
gregory-p
2019-08-09 13:07:58 +03:00
parent ad23a5e603
commit 05ac3bd4f2
2 changed files with 49 additions and 0 deletions

37
build/build.xml Normal file
View 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>

View 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', '');