-
Notifications
You must be signed in to change notification settings - Fork 15
Home
rynop edited this page Nov 26, 2011
·
11 revisions
CakePlate is intended for Linux/Mac dev's who wish to get up and going fast on a CakePHP project with some best practices already baked in.
git clone --recursive git://github.com/rynop/CakePlate.git
- Install APC. I have bootstrap.php and core.php setup to use it by default. I recommend v3.1.9. Simple
sudo pecl install apc-3.1.9
should do the trick. If you are running multiple CakePHP apps on the same server, make sure to add a unique prefix in core.php and bootstrap.php. - Change Security.cipherSeed and Security.salt
- Use PHP 5.3.
- AssetCompress is a plugin that combines, minifies and compresses your CSS and JS files. Configure webapp/app/Config/asset_compress.ini to use the css and JS filters you wish to use. I have it setup to use YuiCompressor for css and uglifyjs for JS. Uglifyjs requires a NodeJs server to be installed. See AssetCompress docs for more info.
Then: cd into /webapp/app (ex: /opt/coolapp/webapp/app) and run
sudo chown -R <youruser>:www-data tmp
sudo chmod -R g+w tmp
sudo chown -R <youruser>:www-data webroot/cache_*
sudo chmod -R g+w webroot/cache_*