Skip to content
Snippets Groups Projects
Commit 4f52786e authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #222 from vufind-org/apache-in-phing

Allow optional activation of Apache configuration.
parents 7129450c 71f51311
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" /> <property name="builddir" value="${tmp}/build/${phing.project.name}" override="true" />
<property name="srcdir" value="${project.basedir}" override="true" /> <property name="srcdir" value="${project.basedir}" override="true" />
<property name="apacheconfdir" value="/etc/apache2/conf.d" /> <property name="apacheconfdir" value="/etc/apache2/conf.d" />
<property name="apachectl" value="/etc/init.d/apache2" /> <property name="apachectl" value="false" /><!-- set to apachectl path to spin up Apache instance -->
<property name="vufindurl" value="http://localhost/vufind" /> <property name="vufindurl" value="http://localhost/vufind" />
<property name="vufinddb" value="vufind_test" /> <property name="vufinddb" value="vufind_test" />
<property name="vufinddbuser" value="vufindtest" /> <property name="vufinddbuser" value="vufindtest" />
...@@ -104,10 +104,14 @@ ...@@ -104,10 +104,14 @@
<!-- Generate basic configuration --> <!-- Generate basic configuration -->
<exec command="php ${srcdir}/install.php --use-defaults" /> <exec command="php ${srcdir}/install.php --use-defaults" />
<!-- Activate Apache (currently disabled; not necessary unless we start using Selenium again) <!-- Activate Apache (if an apachectl path has been provided) -->
<copy file="${srcdir}/local/httpd-vufind.conf" tofile="${apacheconfdir}/vufindtest" /> <if>
<exec command="${apachectl} restart" /> <istrue value="${apachectl}" />
--> <then>
<copy file="${srcdir}/local/httpd-vufind.conf" tofile="${apacheconfdir}/vufindtest.conf" />
<exec command="${apachectl} restart" />
</then>
</if>
<!-- build and configure the requested database type --> <!-- build and configure the requested database type -->
<if> <if>
...@@ -160,10 +164,14 @@ ...@@ -160,10 +164,14 @@
<!-- Uninstall and Deactivate VuFind --> <!-- Uninstall and Deactivate VuFind -->
<target name="shutdown" description="deactivate and uninstall demo"> <target name="shutdown" description="deactivate and uninstall demo">
<!-- Remove Apache settings (disabled until corresponding lines in startup are also uncommented) <!-- Remove Apache settings (if Apache was enabled) -->
<exec command="rm ${apacheconfdir}/vufindtest" /> <if>
<exec command="${apachectl} restart" /> <istrue value="${apachectl}" />
--> <then>
<delete file="${apacheconfdir}/vufindtest.conf" />
<exec command="${apachectl} restart" />
</then>
</if>
<!-- drop database --> <!-- drop database -->
<if> <if>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment