Phing - Setting up applications

From GLMWiki
Revision as of 14:31, 12 June 2012 by Laury (Talk | contribs)

Jump to: navigation, search

For this to work you need to have a copy of the build.xml file from demo in the directory where you'll be setting up your website. It's best if this is on /var/www/server/. dev52 (current development) server is not setup with the correct pear modules to run our phing setup script for demo like sites.

svn export http://cvs2/svn/prod/demo.gaslightmedia.com/build.xml

If you're not able to run phing check the permissions on the following directories and files. Run pear config-show and look at where you're pear data and the PEAR directory and make sure to change the permission to be able to access them.

You can override these properties for phing at run time

* dbHost   The database host name used for the setup
* fsDbHost The file server database host name used for the setup

Running phing with options to localhost

phing -DdbHost=localhost -DfsDbHost=localhost install
phing -DdbHost=localhost -DfsDbHost=localhost contacts
phing -DdbHost=localhost -DfsDbHost=localhost members
phing -DdbHost=localhost -DfsDbHost=localhost events
phing -DdbHost=localhost -DfsDbHost=localhost coupons
phing -DdbHost=localhost -DfsDbHost=localhost photos
phing -DdbHost=localhost -DfsDbHost=localhost slideshow
phing -DdbHost=localhost -DfsDbHost=localhost jobs
phing -DdbHost=localhost -DfsDbHost=localhost press
phing -DdbHost=localhost -DfsDbHost=localhost videos
phing -DdbHost=localhost -DfsDbHost=localhost weather
phing -DdbHost=localhost -DfsDbHost=localhost banners

Run "install" before any of the other commands. If you wish to set up the application for members, make sure to run "members" before "events" and "coupons". Coupons and Events will ask if the members is installed or not and will run a different setup sql script depending on if the members table is installed.

Aside from this, the order in which you run these phing commands is unimportant.