User:Sandbox autoconfig

Setting a lovemachine.sendlove.us developer sandbox to run with autoconfig.
Since our framework based applications already have a 'bootstrap', we'll be renaming this script to autoconfig.php in the near future.

The Mulit-Tenant environment requires that every unique piece of information is stored in the database.

This simplifies the backup process as well as makes sure all assets are available across any machine with the proper access.

Getting primary applications (love/review/etc) to use autoconfig with the lovemachine.sendlove.us database.
•	ssh to dev (be in your home directory /mnt/ebsvol/dev-www/~sandboxusername)

•	checkout tools

•	copy tools/bootstrap.php into your public_html

•	goto public_html and checkout the love app

•	goto your love application

•	create server.local.php

•	make ~/public_html/love/js writeable by apache (needed for js compiler)

•	browse AS dev.sendlove.us http://dev.sendlove.us/~sandboxusername/love

Override autoconfig variables

 * You will only need to do this if testing and you need to override the public settings: **

•	define the constants BEFORE calling autoconfig

•	re/define configuration arrays AFTER calling autoconfig

Autoconfig for framework applications (login/admin)
__Login is necessary for the Love & Admin apps only.__

Some of our framework applications (custom/zend) complicate the process.

autoconfig for login
•	goto home directory on dev

•	checkout login

•	configuration occurs in login/application/config/

•	copy config.dist.php to config.php (to avoid svn collisions)

•	turn on autoconfig in ~sandboxusername/login/application/config/config.php

In code, replace;

with;

•	update app endpoints to point to your sandbox in ~sandboxusername/login/application/config/config.php

•	link login to sandbox (alternatively you can checkout login into public_html and map APP_LOGIN to '/~sandboxusername/login/htdocs/index.php/' however you will have to adjust your location for autoconfig.php

•	copy tools/bootstrap.php into your home directory

autoconfig for admin
•	goto home directory on dev

•	checkout admin

•	configuration occurs in admin/public/index.php

•	turn on autoconfig in index.php;

In code, replace;

with;

•	copy .htaccess.default to .htaccess

•	update RewriteBase in admin/public/.htaccess

•	if static configuration is enabled, turn off in admin/application/configs

•	make admin/public/js writeable by apache (needed for js compiler)

•	link admin to sandbox