Application Layout
Authors:
Directory
Description
Notes
/bin
command line tools
should be included in $PATH
/bin/admin
app admin scripts
dont export path, run from here
/www
web server document root
contains PHP "interface" files
/www/js
javascript modules
/www/css
css styles
/www/images
images
/lib/py
Python libraries
/lib/php
PHP libraries
/tpl
templates (html, etc)
/config.example.ini
example site configuration
copy to config.ini locally
/init.php
PHP global initialization
/sql
PgSQL scripts
database initialization
/doc
user and developer docs
/data
output save directory
must be writable by the app
/log
application logs
web, daemon, and database logs
/upload
user data upload directories
upload and data directories must remain on the same volume to allow (quick) file renaming.
sql and doc directories are removed during the deployment to production (see bin/admin/repo_to_prod.sh), they are intended for development environments
Related
Wiki: Home
Wiki: Project Data Flow