Skip to content
taiwen edited this page Mar 9, 2013 · 4 revisions

Pi deployment and setup.

//Host definition file //Paths/URLs to system folders //URIs without a leading slash are considered relative to the current Pi Engine host location //URIs with a leading slash are considered semi-relative (you must setup proper rewriting rules in your server conf)

return array( // URIs to resources // If URI is a relative one then www root URI will be prepended 'uri' => array( // WWW root URI 'www' => 'http://pi', //'www' => 'http://localhost/pi/www', // URI to access uploads directory //'upload' => 'http://upload.pi.org', 'upload' => 'http://pi/upload', // URI to access assets directory //'asset' => 'http://asset.pi.org', 'asset' => 'http://pi/asset', // URI to access static files directory //'static' => 'http://static.pi.org', 'static' => 'http://pi/static', ),

// Paths to resources
// If path is a relative one then www root path will be prepended
'path'      => array(
    // WWW root path
    //'www'       => 'C:/wamp/www/pi/www',
    // Library directory
    //'lib'       => 'C:/wamp/www/pi/lib',
    // User extension directory
    'usr'       => 'C:/wamp/www/pi/usr',
    // User data directory
    'var'       => 'C:/wamp/www/pi/var',
    // Application module directory
    'module'    => 'C:/wamp/www/pi/usr/module',
    // Theme directory
    'theme'     => 'C:/wamp/www/pi/usr/theme',

    // Path to uploads directory
    'upload'    => 'C:/wamp/www/pi/www/upload',
    // Path to assets directory
    'asset'     => 'C:/wamp/www/pi/www/asset',
    // Path to static files directory
    'static'    => 'C:/wamp/www/pi/www/static',

    // Path to vendor library directory
    // Optional, default as lib/vendor
    'vendor'    => 'C:/wamp/www/pi/lib/vendor',

    // Dependent paths
    // Note: optional, will be located in var if not specified
    // Path to global configuration directory
    'config'    => 'C:/wamp/www/pi/var/config',
    // Path to cache files directory
    'cache'     => 'C:/wamp/www/pi/var/cache',
    // Path to logs directory
    'log'       => 'C:/wamp/www/pi/var/log',
)

);

Clone this wiki locally