# Trying To Scale - PHP 8.x micro Framework #### tts for short...is a collection of scripts I really liked...and made improvements on or made from scratch... ## Install clone/place these files into: /var/www/frames/tts_framework via: ``` cd /var/www mkdir frames cd frames git clone https://git.mysnippetsofcode.com/tts/tts_framework ``` ### Install the vendor files: ``` cd /var/www/frames/tts_framework composer install ``` HTML Purifier Cache folder needs web server write access: ``` cd /var/www/frames/tts_framework/vendor/ezyang/htmlpurifier/library sudo chgrp www-data HTMLPurifier/DefinitionCache/Serializer ``` ### Manually Compile the framework!!! ``` cd /var/www/frames/tts_framework/src php -f compiler.php -- -dev ``` ### Install JavaScript Lib: ``` cd /var/www/frames/ git clone https://git.mysnippetsofcode.com/tts/tts_js.git sudo npm install --global gulp-cli npm install gulp ``` ### Auto-Watch Compile the framework on PHP changes!!! ## Note gulp will use a symbolic link to /var/www/frames/tts_js/node_modules ## So, gulp should just work if installed in the above steps. ``` cd /var/www/frames/tts_framework gulp --dev ``` ### Install sample project: ``` cd /var/www git clone https://git.mysnippetsofcode.com/tts/tts_project ``` ### To run fix your PROJECT folder permissions for the web server GROUP via: ``` #### Ensure folders group has read/write/execute permissions first (chmod g+rwx), then do: cd /var/www/tts_project/src sudo chgrp www-data logs/ chmod g+s logs/ cd configs sudo chgrp www-data ex/ mockup/ live/ chmod g+s ex/ mockup/ live/ cd ../services sudo chgrp www-data ex/ mockup/ live/ chmod g+s ex/ mockup/ live/ ``` Important Note: Any changes that you make to the files inside of: configs or services, will require that the loadall.php in those folders be deleted to get remade... on next page load!