cw3setup.php is an install-and-maintenance script for CartoWeb, written in PHP. It works on many systems: Unix/Linux, Windows...
It is used to:
install CartoWeb and/or given projects from CVS
initially download CartoWeb librairies if not already available or outdated
- refresh your setup after adding new projects or in some cases, new plugins
- clean caches and generated files
Documentation
An exhaustive list of commands and options of the cw3setup.php script is available in the manual.
Usage
cw3setup.php must be launched in a command line interface (DOS-like, shell) as an argument of the php command:
php cw3setup.php ...
Tips
Here is a list of tips concerning the script usage. It is not comprehensive and will be improved step by step.
Basic Installation
A simple CartoWeb setup or refresh is obtained by typing:
php cw3setup.php --install --base-url http://url/of/your/cartoweb/
Profile Setting
Since the production profile (cache activated etc.) is the default one. The latter command is equivalent to:
php cw3setup.php --install --base-url http://url/of/your/cartoweb/ --profile production
To deactivate caches, use the development profile:
php cw3setup.php --install --base-url http://url/of/your/cartoweb/ --profile development
Calling a Given Project
When no project is specified, the script runs for ALL the available projects. To restrict its action to a given project, use:
php cw3setup.php --install --base-url http://url/of/your/cartoweb/ --project my_project