The Build System

The Build System

Site Wrangler fetches the source code for a variety of packages, compiles them on the server and installs them.

To check for updates, then apply any updates and compile any changed software simply run:

sw build update

config Arguments

Each package is built using the ./config arguments listed in the configuration file for the package. Each configuration file is stored in /opt/sitewrangler/etc/. To list the package names, run:

sw build list

Due to the fact that not all arguments are correct for all software versions, there are several files that are loaded in to compile the full config argument list. The version number for the software is broken up into segments separated by a period. The format for these files is as follows:

/opt/sitewrangler/etc/[package_name]-config-args
/opt/sitewrangler/etc/[package_name]-[v1]-config-args
/opt/sitewrangler/etc/[package_name]-[v1]-[v2]-config-args
/opt/sitewrangler/etc/[package_name]-[v1]-[v2]-[v3]-config-args

If you adjust the config arguments for a package, you need to rebuild not only the software you just adjusted but also the software that depends on it. To do this simply run this command (substituting package_name with the real name of the package):

sw build run package_name

Since checking log files is an essential part of updating and debugging config arguments, Site Wrangler provides a quick way to access them without remembering file paths:

sw build log package_name

Leave a Reply

Your email address will not be published. Required fields are marked *