Assume we have the following project structures
Project name. This could be anything. for example sample
PROJECT_NAME=sample
Your project's git repository url. for example http://github.com/projects/sample.git
[email protected]/projects/sample.git
The directory where downloaded source code from $GIT_URL will be saved ~/deploy
GIT_DIR=~/deploy
Your website's document root e.g. /var/www/sample
PRODUCTION_DIR=/var/www/sample
There's case that your git repo might have a different structure compare to your $PRODUCTION_DIR. for example
# git directory structure /sample.git |--misc |--src # this is our document root that will be copied to /var/www/sample |--tests
So, in this case our $PRODUCTION_WWW_REL_DIR is src
GIT_WWW_REL_DIR=src
Project's upload directory. This is relative to $PRODUCTION_DIR. For example if your $PRODUCTION_DIR is /var/www/sample
and /var/www/sample/uploads
is your upload dir (writeable) then your config value is uploads
PRODUCTION_UPLOAD_REL_DIR=uploads